aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/string/memchr.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-02-03 20:25:36 +0000
committerWarner Losh <imp@FreeBSD.org>2009-02-03 20:25:36 +0000
commitea58272861af2404aa2c849729dcc55379bc0924 (patch)
treef2cddc02e1da83f8c3218c2edfcf3842b5045c78 /lib/libc/string/memchr.c
parent41ba7e9b13c4c50e6110d72e5a9eb9b91fe981fd (diff)
downloadsrc-ea58272861af2404aa2c849729dcc55379bc0924.tar.gz
src-ea58272861af2404aa2c849729dcc55379bc0924.zip
Fix the functions to match prototypes. The K&R definitions differ
from the ANSI-C prototype due to the 'int promotion' rule.
Notes
Notes: svn path=/head/; revision=188098
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;