From 0a8e0953b806aa0ac60022c94c66011f44ceaacd Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 24 Jul 2002 04:16:01 +0000 Subject: Convert to ANSI function headers and make 'ch' argument int, not char. Noticed by deraadt@ --- src/lib/libc/string/index.c | 7 +++---- src/lib/libc/string/rindex.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/lib/libc/string/index.c b/src/lib/libc/string/index.c index 86c4e75f12..8e4b146493 100644 --- a/src/lib/libc/string/index.c +++ b/src/lib/libc/string/index.c @@ -32,18 +32,17 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: index.c,v 1.2 1996/08/19 08:34:02 tholo Exp $"; +static char *rcsid = "$OpenBSD: index.c,v 1.3 2002/07/24 04:16:01 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include char * #ifdef STRCHR -strchr(p, ch) +strchr(const char *p, int ch) #else -index(p, ch) +index(const char *p, int ch) #endif - register const char *p, ch; { for (;; ++p) { if (*p == ch) diff --git a/src/lib/libc/string/rindex.c b/src/lib/libc/string/rindex.c index f18553f667..7c7c94ae81 100644 --- a/src/lib/libc/string/rindex.c +++ b/src/lib/libc/string/rindex.c @@ -32,18 +32,17 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: rindex.c,v 1.2 1996/08/19 08:34:08 tholo Exp $"; +static char *rcsid = "$OpenBSD: rindex.c,v 1.3 2002/07/24 04:16:01 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include char * #ifdef STRRCHR -strrchr(p, ch) +strrchr(const char *p, int ch) #else -rindex(p, ch) +rindex(const char *p, int ch) #endif - register const char *p, ch; { register char *save; -- cgit v1.2.3-55-g6feb