summaryrefslogtreecommitdiff
path: root/common/stringx.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-08-27 16:59:47 +0000
committerStef Walter <stef@memberwebs.com>2004-08-27 16:59:47 +0000
commit0c41db052b4c3271315d5267f3cacbc737617758 (patch)
treed18f62b1dc7abb6abaf75e391c85363a36a850d5 /common/stringx.c
parent4b0e5506db124d17521e20dc9664eca60c71ece9 (diff)
- Fixed most warnings when compiled with -Wall
Diffstat (limited to 'common/stringx.c')
-rw-r--r--common/stringx.c7
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));