]> The Tcpdump Group git mirrors - tcpdump/blobdiff - missing/strsep.c
CMake: Fix the comment about versions. [skip ci]
[tcpdump] / missing / strsep.c
index a1e6b3017b6f3f66068a37ee7fc73b180338727f..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 "interface.h"
+#include "netdissect.h"
 
 /*
  * Get next token from string *stringp, where tokens are possibly-empty
@@ -55,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)