summaryrefslogtreecommitdiff
path: root/src/kbs.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-06-05 01:09:58 +0000
committerIan C <ianc@noddybox.co.uk>2004-06-05 01:09:58 +0000
commit4a6391ce910b5f71574e20b31f1e9429d756b96d (patch)
treee6866cc37946ca2ca69d9719cd5f8e30311fe2dc /src/kbs.c
parentc378e8f900d85d59a8a616bf0b8b14e426d898e1 (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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/kbs.c b/src/kbs.c
index 8cdf8be..ef6ab1e 100644
--- a/src/kbs.c
+++ b/src/kbs.c
@@ -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);