]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/strsep.c
CMake: Fix the comment about versions. [skip ci]
[tcpdump] / missing / strsep.c
index bcce4c46861a9d70f8a60c60c9e3c52607af7737..a07660c4bab249fc71314739211fb94e7941c067 100644 (file)
  * SUCH DAMAGE.
  */
 
-#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.
@@ -53,9 +53,9 @@
 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)