diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2005-10-28 14:20:40 +0200 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2005-10-28 14:20:40 +0200 |
commit | 98df67cd183bf75065d3e7a0f892427c4de21143 (patch) | |
tree | a3c11955afd735f9c9be86d23e755ea4e94b3783 /src/pacman/log.c | |
parent | cce9d780c99feae8600249e9a81cb2a24e8589d9 (diff) | |
download | pacman-98df67cd183bf75065d3e7a0f892427c4de21143.tar.gz pacman-98df67cd183bf75065d3e7a0f892427c4de21143.tar.xz |
added pmconfig_t structure to hold all the configuration
(patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r-- | src/pacman/log.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |