summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-27 17:00:07 +0000
committerStef Walter <stef@memberwebs.com>2004-08-27 17:00:07 +0000
commitce81aa857ac7df3c3a0544626ad601710e555a90 (patch)
treebb63eda45c5ac02b4cd930063369d50cf0772704 /src/util.c
parent100f692245931aee67d07905104188ef9465b334 (diff)
- Fixed most warnings when compiled with -Wall
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index a2bc90d..02e89f3 100644
--- a/src/util.c
+++ b/src/util.c
@@ -38,11 +38,16 @@
#include <sys/types.h>
+#include <ctype.h>
#include <syslog.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
+#include <alloca.h>
+#include <err.h>
+#include <stdarg.h>
+#include <strings.h>
#include "usuals.h"
#include "compat.h"
@@ -62,7 +67,6 @@ static void vmessage(clamsmtp_context_t* ctx, int level, int err,
size_t len;
char* m;
int e = errno;
- int x;
if(g_daemonized)
{
@@ -132,7 +136,6 @@ void log_fd_data(clamsmtp_context_t* ctx, const char* data, int* fd, int read)
#define ptrdiff(o, t)
char prefix[16];
- const char* t;
ASSERT(ctx);
ASSERT(ismember(ctx, fd));