summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2005-11-29 18:48:02 +0000
committerchristos <christos@NetBSD.org>2005-11-29 18:48:02 +0000
commit387331c600dc5e16e48c64b2a507a60f563bbbff (patch)
tree4b0738af36c24e3a81b9222965ca6ad0268ca9a8 /lib/libc/string
parent35923ac2fcc15d519d004f2782b0be1b6c16d3ae (diff)
fix warns=4
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;
}