diff options
Diffstat (limited to 'src/lib/libc/string/memchr.c')
-rw-r--r-- | src/lib/libc/string/memchr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libc/string/memchr.c b/src/lib/libc/string/memchr.c index 9a294dff42..454abcbc17 100644 --- a/src/lib/libc/string/memchr.c +++ b/src/lib/libc/string/memchr.c | |||
@@ -31,16 +31,13 @@ | |||
31 | */ | 31 | */ |
32 | 32 | ||
33 | #if defined(LIBC_SCCS) && !defined(lint) | 33 | #if defined(LIBC_SCCS) && !defined(lint) |
34 | static char *rcsid = "$OpenBSD: memchr.c,v 1.5 2003/06/02 20:18:38 millert Exp $"; | 34 | static char *rcsid = "$OpenBSD: memchr.c,v 1.6 2003/06/11 21:08:16 deraadt Exp $"; |
35 | #endif /* LIBC_SCCS and not lint */ | 35 | #endif /* LIBC_SCCS and not lint */ |
36 | 36 | ||
37 | #include <string.h> | 37 | #include <string.h> |
38 | 38 | ||
39 | void * | 39 | void * |
40 | memchr(s, c, n) | 40 | memchr(const void *s, int c, size_t n) |
41 | const void *s; | ||
42 | int c; | ||
43 | size_t n; | ||
44 | { | 41 | { |
45 | if (n != 0) { | 42 | if (n != 0) { |
46 | const unsigned char *p = s; | 43 | const unsigned char *p = s; |