aboutsummaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1998-10-13 07:03:37 +0000
committerGuy Harris <guy@alum.mit.edu>1998-10-13 07:03:37 +0000
commitd0b809aa7421d0b6c265084a51cbf9fdc9159b8b (patch)
tree1bcdb1dc35bf75e65d5d8a1587d105e74a4cfc1e /util.c
parentd9850d803f8a4c155bd919f5ca7a991bd8e0e8c9 (diff)
Squelch a number of "-Wall" errors by:
1) renaming "snprintf.h" to "snprintf-imp.h" (it contains stuff used by the "snprintf()" *implementation*, but not stuff it *exports*); 2) creating a new "snprintf.h" to declare "vsnprintf()" and "snprintf()"; 3) removing an unused variable; 4) fixing a call to "add_item_to_tree()" to handle the possibility of "ntohl()" returning a "long" rather than an "int". svn path=/trunk/; revision=47
Diffstat (limited to 'util.c')
-rw-r--r--util.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/util.c b/util.c
index 96f2209c82..5173c25cd0 100644
--- a/util.c
+++ b/util.c
@@ -1,7 +1,7 @@
/* util.c
* Utility routines
*
- * $Id: util.c,v 1.4 1998/10/12 01:40:57 gerald Exp $
+ * $Id: util.c,v 1.5 1998/10/13 07:03:37 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -34,6 +34,15 @@
#include <stdarg.h>
#include <strings.h>
+#ifdef NEED_SNPRINTF_H
+# ifdef HAVE_STDARG_H
+# include <stdarg.h>
+# else
+# include <varargs.h>
+# endif
+# include "snprintf.h"
+#endif
+
#include "util.h"
#include "image/icon-excl.xpm"