summaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
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-18 12:38:27 +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-18 12:38:27 +0000
commit406e9ad8c741fe18b9f3722bed679c3dc4e96614 (patch)
treef7531be1367845820947af82c0d5b6e084cf68e8 /src/log.c
parent10ff3f6d075a3ef000f87912d2c400e8a8818206 (diff)
Max Kellermann <max@duempel.org>:
Use fputs() instead of fprintf()
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log.c b/src/log.c
index a2d48a4..41b2057 100644
--- a/src/log.c
+++ b/src/log.c
@@ -104,7 +104,7 @@ void dlog_buffered_ct_flush(void *buffer_data, void *data)
{
FILE *fd = data;
- fprintf(fd, "%s", (const char*)buffer_data);
+ fputs((const char*)buffer_data, fd);
fflush(fd);
}
@@ -124,7 +124,7 @@ void dlog_buffered_ct(FILE *fd, struct buffer *b, struct nf_conntrack *ct)
snprintf(buf+strlen(buf), 1024-strlen(buf), "\n");
/* zero size buffer: force fflush */
if (buffer_size(b) == 0) {
- fprintf(fd, "%s", buf);
+ fputs(buf, fd);
fflush(fd);
}
@@ -132,7 +132,7 @@ void dlog_buffered_ct(FILE *fd, struct buffer *b, struct nf_conntrack *ct)
buffer_flush(b, dlog_buffered_ct_flush, fd);
if (buffer_add(b, buf, strlen(buf)) == -1) {
/* buffer too small, catacrocket! */
- fprintf(fd, "%s", buf);
+ fputs(buf, fd);
fflush(fd);
}
}