aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string/memchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string/memchr.c')
-rw-r--r--lib/libc/string/memchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/memchr.c b/lib/libc/string/memchr.c
index 47d37db16be9..6d7c2fd94e72 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;