]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Move the include of "interface.h" to where it was in 3.8[.x].
authorguy <guy>
Wed, 21 Jul 2004 21:42:32 +0000 (21:42 +0000)
committerguy <guy>
Wed, 21 Jul 2004 21:42:32 +0000 (21:42 +0000)
Get rid of the declaration of "strsep()" - we include "interface.h",
which should declare it if we don't define HAVE_STRSEP, and if
HAVE_STRSEP is defined on a platform that doesn't have "strsep()",
that's a bug that should be fixed by arranging not to define it.

print-esp.c

index 7c4eb156bba8baaedf992ba9bec9f1575a6de173..43bdfa794ce7f25ff830d5b83dd452a68ff456ca 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.53 2004-07-21 21:32:12 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-esp.c,v 1.54 2004-07-21 21:42:32 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -44,17 +44,13 @@ static const char rcsid[] _U_ =
 
 #include <stdio.h>
 
-#include "interface.h"
 #include "ip.h"
 #include "esp.h"
 #ifdef INET6
 #include "ip6.h"
 #endif
 
-#if defined(__MINGW32__) || defined(__WATCOMC__)
-extern char *strsep(char **stringp, const char *delim); /* Missing/strsep.c */
-#endif
-
+#include "interface.h"
 #include "netdissect.h"
 #include "addrtoname.h"
 #include "extract.h"