summaryrefslogtreecommitdiff
path: root/lib/printsbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/printsbuf.c')
-rw-r--r--lib/printsbuf.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/printsbuf.c b/lib/printsbuf.c
index 81f5e0b06750c..c56578717b5cf 100644
--- a/lib/printsbuf.c
+++ b/lib/printsbuf.c
@@ -1,10 +1,10 @@
/*
- * Copyright (C) 2002-2004 by Darren Reed.
- *
- * See the IPFILTER.LICENCE file for details on licencing.
- *
- * $Id: printsbuf.c,v 1.2.4.2 2006/06/16 17:21:14 darrenr Exp $
- */
+ * Copyright (C) 2012 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ *
+ * $Id$
+ */
#ifdef IPFILTER_SCAN
@@ -13,8 +13,9 @@
#include "ipf.h"
#include "netinet/ip_scan.h"
-void printsbuf(buf)
-char *buf;
+void
+printsbuf(buf)
+ char *buf;
{
u_char *s;
int i;
@@ -23,8 +24,15 @@ char *buf;
if (ISPRINT(*s))
putchar(*s);
else
- printf("\\%o", *s);
+ PRINTF("\\%o", *s);
}
}
+#else
+void printsbuf(char *buf);
+void printsbuf(buf)
+ char *buf;
+{
+ buf = buf; /* gcc -Wextra */
+}
#endif