summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authorguy <guy>2003-03-25 08:33:48 +0000
committerguy <guy>2003-03-25 08:33:48 +0000
commit0b22abf27af88dfaf975d01b0f7a50e53e74188b (patch)
tree6041810c68812432e043b4616bfef32ac4e7a745 /missing
parent5697670cebd7d360544730c777f0d2d918fd8a7e (diff)
downloadtcpdump-0b22abf27af88dfaf975d01b0f7a50e53e74188b.tar.gz
Fix up some compiler warnings.
Diffstat (limited to 'missing')
-rw-r--r--missing/strsep.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/missing/strsep.c b/missing/strsep.c
index d384cc14..0362d1f5 100644
--- a/missing/strsep.c
+++ b/missing/strsep.c
@@ -33,11 +33,16 @@
#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)";
+ "@(#) $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
+#include <config.h>
+#endif
+
+#include <tcpdump-stdinc.h>
+
#include <string.h>
-#include <stdio.h>
/*
* Get next token from string *stringp, where tokens are possibly-empty
@@ -51,9 +56,7 @@ 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;