diff options
author | Stef Walter <stef@memberwebs.com> | 2004-08-27 17:00:07 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-08-27 17:00:07 +0000 |
commit | ce81aa857ac7df3c3a0544626ad601710e555a90 (patch) | |
tree | bb63eda45c5ac02b4cd930063369d50cf0772704 /common/stringx.c | |
parent | 100f692245931aee67d07905104188ef9465b334 (diff) |
- Fixed most warnings when compiled with -Wall
Diffstat (limited to 'common/stringx.c')
-rw-r--r-- | common/stringx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/common/stringx.c b/common/stringx.c index a2bc90d..02e89f3 100644 --- a/common/stringx.c +++ b/common/stringx.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)); |