diff options
author | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-15 14:00:14 +0000 |
---|---|---|
committer | /C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org> | 2008-01-15 14:00:14 +0000 |
commit | 82290b2b0bd2ebb5539b61b98e993ae807c2e8d7 (patch) | |
tree | 6f5cddfcc4c64a6a1cf3af96144271727be8e2f6 /src/log.c | |
parent | a1728b3d5fd0b417941b7114de2fa9384ece5a35 (diff) | |
download | conntrack-tools-82290b2b0bd2ebb5539b61b98e993ae807c2e8d7.tar.gz conntrack-tools-82290b2b0bd2ebb5539b61b98e993ae807c2e8d7.zip |
Max Kellermann <max@duempel.org>:
Fix tons of gcc warnings
Diffstat (limited to 'src/log.c')
-rw-r--r-- | src/log.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -18,7 +18,7 @@ * Description: Logging support for the conntrack daemon */ -#include <stdio.h> +#include "log.h" #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> @@ -26,6 +26,7 @@ #include <stdarg.h> #include <string.h> #include <errno.h> +#include <unistd.h> #include "buffer.h" #include "conntrackd.h" @@ -78,11 +79,11 @@ int init_log(void) return 0; } -void dlog(FILE *fd, int priority, char *format, ...) +void dlog(FILE *fd, int priority, const char *format, ...) { time_t t; char *buf; - char *prio; + const char *prio; va_list args; if (fd) { @@ -125,7 +126,7 @@ void dlog_buffered_ct_flush(void *buffer_data, void *data) { FILE *fd = data; - fprintf(fd, "%s", buffer_data); + fprintf(fd, "%s", (const char*)buffer_data); fflush(fd); } |