summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-11-14 20:28:25 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-11-14 20:28:25 +0000
commit870d67dd76e940d29b3c6207249ea170ecfc932b (patch)
tree0f1d202d44aca4774dd7140394b875257aed5277 /lib
parentf3663642ed2b175059a833b24473ef18c99adade (diff)
Clean up memchr slightly to better match coming memrchr
(K&R-style type promotions are evil),
Diffstat (limited to 'lib')
-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 2ebb5dab322..8ae05bbef3d 100644
--- a/lib/libc/string/memchr.c
+++ b/lib/libc/string/memchr.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: memchr.c,v 1.2 1996/08/19 08:34:04 tholo Exp $";
+static char *rcsid = "$OpenBSD: memchr.c,v 1.3 1999/11/14 20:28:24 espie Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -43,11 +43,11 @@ static char *rcsid = "$OpenBSD: memchr.c,v 1.2 1996/08/19 08:34:04 tholo Exp $";
void *
memchr(s, c, n)
const void *s;
- register unsigned char c;
- register size_t n;
+ int c;
+ size_t n;
{
if (n != 0) {
- register const unsigned char *p = s;
+ const unsigned char *p = s;
do {
if (*p++ == c)