From 98df67cd183bf75065d3e7a0f892427c4de21143 Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Fri, 28 Oct 2005 12:20:40 +0000 Subject: added pmconfig_t structure to hold all the configuration (patch from VMiklos ) --- src/pacman/log.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/pacman/log.c') diff --git a/src/pacman/log.c b/src/pacman/log.c index b5ab2400..6ff488a9 100644 --- a/src/pacman/log.c +++ b/src/pacman/log.c @@ -28,10 +28,12 @@ /* pacman */ #include "log.h" +#include "list.h" +#include "conf.h" #define LOG_STR_LEN 256 -extern unsigned short pmo_verbose; +extern pmconfig_t *config; static int neednl; /* for cleaner message output */ @@ -101,7 +103,7 @@ void vprint(char *fmt, ...) { va_list args; - if(pmo_verbose > 1) { + if(config->verbose > 1) { if(neednl == 1) { fprintf(stdout, "\n"); neednl = 0; -- cgit v1.2.3