aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-01-04 07:39:14 +0000
committerGuy Harris <guy@alum.mit.edu>1999-01-04 07:39:14 +0000
commitb6f5b5db78631f9f7c2a3d87c1b482c90e4bb739 (patch)
tree036165adb23a714b098e49aa4d6abbbb28740522 /ethereal.c
parentb0fe085dc321962b73f60065c4fccd0c84f5f995 (diff)
Include "snprintf.h", as we use "snprintf()", so that we don't get
warnings from "gcc -Wall". svn path=/trunk/; revision=151
Diffstat (limited to 'ethereal.c')
-rw-r--r--ethereal.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/ethereal.c b/ethereal.c
index 89f5ae059c..7ac74c9ed7 100644
--- a/ethereal.c
+++ b/ethereal.c
@@ -1,6 +1,6 @@
/* ethereal.c
*
- * $Id: ethereal.c,v 1.19 1998/12/29 04:05:34 gerald Exp $
+ * $Id: ethereal.c,v 1.20 1999/01/04 07:39:14 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -55,6 +55,15 @@
#include <fcntl.h>
#include <netinet/in.h>
+#ifdef NEED_SNPRINTF_H
+# ifdef HAVE_STDARG_H
+# include <stdarg.h>
+# else
+# include <varargs.h>
+# endif
+# include "snprintf.h"
+#endif
+
#include "ethereal.h"
#include "capture.h"
#include "packet.h"