]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Fix up some compiler warnings.
authorguy <guy>
Tue, 25 Mar 2003 08:33:48 +0000 (08:33 +0000)
committerguy <guy>
Tue, 25 Mar 2003 08:33:48 +0000 (08:33 +0000)
missing/strsep.c

index d384cc149e1a0397271c52bcf4087de8e131f602..0362d1f51b7180ed77b0c5a77de1285069e40f09 100644 (file)
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/missing/strsep.c,v 1.2 2003-03-03 00:56:31 guy Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/missing/strsep.c,v 1.3 2003-03-25 08:33:48 guy Exp $ (LBL)";
 #endif /* LIBC_SCCS and not lint */
 
+#ifdef HAVE_CONFIG_H 
+#include <config.h>
+#endif
+
+#include <tcpdump-stdinc.h>
+
 #include <string.h>
-#include <stdio.h>
 
 /*
  * Get next token from string *stringp, where tokens are possibly-empty
@@ -51,9 +56,7 @@ static const char rcsid[] =
  * If *stringp is NULL, strsep returns NULL.
  */
 char *
-strsep(stringp, delim)
-       register char **stringp;
-       register const char *delim;
+strsep(char **stringp, const char *delim)
 {
        register char *s;
        register const char *spanp;