]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/strsep.c
Use more the ND_TTEST_1() macro
[tcpdump] / missing / strsep.c
index d384cc149e1a0397271c52bcf4087de8e131f602..05f10bccff92d54fee0d7e1d6215ebb4394ba6d3 100644 (file)
  * SUCH DAMAGE.
  */
 
-#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)";
-#endif /* LIBC_SCCS and not lint */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <netdissect-stdinc.h>
 
 #include <string.h>
-#include <stdio.h>
+
+#include "netdissect.h"
 
 /*
  * Get next token from string *stringp, where tokens are possibly-empty
@@ -51,13 +53,11 @@ 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;
-       register int c, sc;
+       char *s;
+       const char *spanp;
+       int c, sc;
        char *tok;
 
        if ((s = *stringp) == NULL)