X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/24f55408993201f184788f35b661ab63f26cffcb..afe133ecef9a8593ecf7fcbb557276c05f2bc7ab:/missing/strsep.c diff --git a/missing/strsep.c b/missing/strsep.c index ddad5964..05f10bcc 100644 --- a/missing/strsep.c +++ b/missing/strsep.c @@ -31,13 +31,15 @@ * SUCH DAMAGE. */ -#include +#ifdef HAVE_CONFIG_H +#include +#endif + +#include + #include -#include -#if defined(LIBC_SCCS) && !defined(lint) -static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; -#endif /* LIBC_SCCS and not lint */ +#include "netdissect.h" /* * Get next token from string *stringp, where tokens are possibly-empty @@ -51,13 +53,11 @@ static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; * 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)