diff options
Diffstat (limited to 'lib/libc/string/strpbrk.c')
-rw-r--r-- | lib/libc/string/strpbrk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/string/strpbrk.c b/lib/libc/string/strpbrk.c index efbdc8a..2069bee 100644 --- a/lib/libc/string/strpbrk.c +++ b/lib/libc/string/strpbrk.c @@ -39,14 +39,13 @@ __FBSDID("$FreeBSD$"); * Find the first occurrence in s1 of a character in s2 (excluding NUL). */ char * -strpbrk(s1, s2) - const char *s1, *s2; +strpbrk(const char *s1, const char *s2) { const char *scanp; int c, sc; while ((c = *s1++) != 0) { - for (scanp = s2; (sc = *scanp++) != 0;) + for (scanp = s2; (sc = *scanp++) != '\0';) if (sc == c) return ((char *)(s1 - 1)); } |