aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-03-23 03:58:59 +0000
committerGuy Harris <guy@alum.mit.edu>1999-03-23 03:58:59 +0000
commit8865cae8112f7ee168f31a2969c00d148d249c89 (patch)
tree05bea48483591780dac23ab4796db80148d188ad
parente9b532370cb9ea9a2ae4e9070440b20fe666456b (diff)
Move the include of "snprintf.h" after a bunch of other includes, so
that "size_t" will be defined before it's included (it uses "size_t"). svn path=/trunk/; revision=225
-rw-r--r--packet-tcp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/packet-tcp.c b/packet-tcp.c
index 6183a02421..7c3cbe64c8 100644
--- a/packet-tcp.c
+++ b/packet-tcp.c
@@ -1,7 +1,7 @@
/* packet-tcp.c
* Routines for TCP packet disassembly
*
- * $Id: packet-tcp.c,v 1.16 1999/03/23 03:14:43 gram Exp $
+ * $Id: packet-tcp.c,v 1.17 1999/03/23 03:58:59 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -27,15 +27,6 @@
# include "config.h"
#endif
-#ifdef NEED_SNPRINTF_H
-# ifdef HAVE_STDARG_H
-# include <stdarg.h>
-# else
-# include <varargs.h>
-# endif
-# include "snprintf.h"
-#endif
-
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
@@ -51,6 +42,15 @@
#include "follow.h"
#include "util.h"
+#ifdef NEED_SNPRINTF_H
+# ifdef HAVE_STDARG_H
+# include <stdarg.h>
+# else
+# include <varargs.h>
+# endif
+# include "snprintf.h"
+#endif
+
#ifndef __PACKET_IP_H__
#include "packet-ip.h"
#endif