summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/memchr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/memchr.c b/lib/libc/string/memchr.c
index d6bcf2e5b5e..9eb47d81fa9 100644
--- a/lib/libc/string/memchr.c
+++ b/lib/libc/string/memchr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: memchr.c,v 1.12 2003/08/07 16:43:48 agc Exp $ */
+/* $NetBSD: memchr.c,v 1.13 2005/11/29 18:48:02 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)memchr.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: memchr.c,v 1.12 2003/08/07 16:43:48 agc Exp $");
+__RCSID("$NetBSD: memchr.c,v 1.13 2005/11/29 18:48:02 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -63,8 +63,8 @@ memchr(s, c, n)
do {
if (*p++ == c)
- return ((void *)(p - 1));
+ return __UNCONST(p - 1);
} while (--n != 0);
}
- return (NULL);
+ return NULL;
}