diff options
Diffstat (limited to 'src/lib/libc/string/strpbrk.c')
-rw-r--r-- | src/lib/libc/string/strpbrk.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libc/string/strpbrk.c b/src/lib/libc/string/strpbrk.c index 520e20de14..024c42bdc3 100644 --- a/src/lib/libc/string/strpbrk.c +++ b/src/lib/libc/string/strpbrk.c | |||
@@ -28,7 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #if defined(LIBC_SCCS) && !defined(lint) | 30 | #if defined(LIBC_SCCS) && !defined(lint) |
31 | static char *rcsid = "$OpenBSD: strpbrk.c,v 1.3 2003/06/02 20:18:38 millert Exp $"; | 31 | static char *rcsid = "$OpenBSD: strpbrk.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $"; |
32 | #endif /* LIBC_SCCS and not lint */ | 32 | #endif /* LIBC_SCCS and not lint */ |
33 | 33 | ||
34 | #include <string.h> | 34 | #include <string.h> |
@@ -37,11 +37,10 @@ static char *rcsid = "$OpenBSD: strpbrk.c,v 1.3 2003/06/02 20:18:38 millert Exp | |||
37 | * Find the first occurrence in s1 of a character in s2 (excluding NUL). | 37 | * Find the first occurrence in s1 of a character in s2 (excluding NUL). |
38 | */ | 38 | */ |
39 | char * | 39 | char * |
40 | strpbrk(s1, s2) | 40 | strpbrk(const char *s1, const char *s2) |
41 | register const char *s1, *s2; | ||
42 | { | 41 | { |
43 | register const char *scanp; | 42 | const char *scanp; |
44 | register int c, sc; | 43 | int c, sc; |
45 | 44 | ||
46 | while ((c = *s1++) != 0) { | 45 | while ((c = *s1++) != 0) { |
47 | for (scanp = s2; (sc = *scanp++) != 0;) | 46 | for (scanp = s2; (sc = *scanp++) != 0;) |