diff options
author | Ian C <ianc@noddybox.co.uk> | 2004-06-05 01:09:58 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2004-06-05 01:09:58 +0000 |
commit | 4a6391ce910b5f71574e20b31f1e9429d756b96d (patch) | |
tree | e6866cc37946ca2ca69d9719cd5f8e30311fe2dc /src/kbs.c | |
parent | c378e8f900d85d59a8a616bf0b8b14e426d898e1 (diff) |
Fixed checking of trusted users. Tweaks to compile under FreeBSD 4.10. Added
debug output option.
Diffstat (limited to 'src/kbs.c')
-rw-r--r-- | src/kbs.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -36,6 +36,7 @@ static const char id[]="$Id$"; #include "pop3.h" #include "dbase.h" #include "dstring.h" +#include "debug.h" #include "util.h" static const char header_id[]=KBS_GLOBAL_H; @@ -125,6 +126,8 @@ int main(int argc, char *argv[]) fp=NULL; } + DBDump(); + if ((msg=POP3GetList())) { int tot=0; @@ -189,6 +192,7 @@ static void Log(FILE *fp, const char *fmt,...) char buff[128]; time_t t; struct tm *ts; + va_list va; if (!fp) return; @@ -200,10 +204,8 @@ static void Log(FILE *fp, const char *fmt,...) "%Y-%m-%d %H:%M:%S: ", ts); - fprintf(fp,"%s",buff); - va_list va; va_start(va,fmt); vfprintf(fp,fmt,va); |