diff options
Diffstat (limited to 'src/lib/libc/string/strsep.c')
-rw-r--r-- | src/lib/libc/string/strsep.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libc/string/strsep.c b/src/lib/libc/string/strsep.c index 2549707fbb..337d78e466 100644 --- a/src/lib/libc/string/strsep.c +++ b/src/lib/libc/string/strsep.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $ */ | 1 | /* $OpenBSD: strsep.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $ */ |
2 | 2 | ||
3 | /*- | 3 | /*- |
4 | * Copyright (c) 1990, 1993 | 4 | * Copyright (c) 1990, 1993 |
@@ -36,7 +36,7 @@ | |||
36 | #if 0 | 36 | #if 0 |
37 | static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; | 37 | static char sccsid[] = "@(#)strsep.c 8.1 (Berkeley) 6/4/93"; |
38 | #else | 38 | #else |
39 | static char *rcsid = "$OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; | 39 | static char *rcsid = "$OpenBSD: strsep.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $"; |
40 | #endif | 40 | #endif |
41 | #endif /* LIBC_SCCS and not lint */ | 41 | #endif /* LIBC_SCCS and not lint */ |
42 | 42 | ||
@@ -52,13 +52,11 @@ static char *rcsid = "$OpenBSD: strsep.c,v 1.4 2003/06/02 20:18:38 millert Exp $ | |||
52 | * If *stringp is NULL, strsep returns NULL. | 52 | * If *stringp is NULL, strsep returns NULL. |
53 | */ | 53 | */ |
54 | char * | 54 | char * |
55 | strsep(stringp, delim) | 55 | strsep(char **stringp, const char *delim) |
56 | register char **stringp; | ||
57 | register const char *delim; | ||
58 | { | 56 | { |
59 | register char *s; | 57 | char *s; |
60 | register const char *spanp; | 58 | const char *spanp; |
61 | register int c, sc; | 59 | int c, sc; |
62 | char *tok; | 60 | char *tok; |
63 | 61 | ||
64 | if ((s = *stringp) == NULL) | 62 | if ((s = *stringp) == NULL) |