]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/strsep.c
Use more the ND_TTEST_1() macro
[tcpdump] / missing / strsep.c
index 0362d1f51b7180ed77b0c5a77de1285069e40f09..05f10bccff92d54fee0d7e1d6215ebb4394ba6d3 100644 (file)
  * SUCH DAMAGE.
  */
 
-#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] =
-    "@(#) $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 
+#ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
 #include <string.h>
 
+#include "netdissect.h"
+
 /*
  * Get next token from string *stringp, where tokens are possibly-empty
  * strings separated by characters from delim.
@@ -58,9 +55,9 @@ static const char rcsid[] =
 char *
 strsep(char **stringp, const char *delim)
 {
-       register char *s;
-       register const char *spanp;
-       register int c, sc;
+       char *s;
+       const char *spanp;
+       int c, sc;
        char *tok;
 
        if ((s = *stringp) == NULL)