diff options
author | imp <imp@FreeBSD.org> | 2009-02-03 20:25:36 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-02-03 20:25:36 +0000 |
commit | 8d1a287c1a30ae986090c8a6016c4d00b6d9276c (patch) | |
tree | f2cddc02e1da83f8c3218c2edfcf3842b5045c78 /lib/libc/string/memchr.c | |
parent | 85ebf973414dfbc79b1b194bd303e31ad364fc40 (diff) | |
download | FreeBSD-src-8d1a287c1a30ae986090c8a6016c4d00b6d9276c.zip FreeBSD-src-8d1a287c1a30ae986090c8a6016c4d00b6d9276c.tar.gz |
Fix the functions to match prototypes. The K&R definitions differ
from the ANSI-C prototype due to the 'int promotion' rule.
Diffstat (limited to 'lib/libc/string/memchr.c')
-rw-r--r-- | lib/libc/string/memchr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/memchr.c b/lib/libc/string/memchr.c index 47d37db..6d7c2fd 100644 --- a/lib/libc/string/memchr.c +++ b/lib/libc/string/memchr.c @@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$"); #include <string.h> void * -memchr(const void *s, unsigned char c, size_t n) +memchr(const void *s, int c, size_t n) { if (n != 0) { const unsigned char *p = s; |