diff options
Diffstat (limited to 'src/lib/libc/string/index.c')
-rw-r--r-- | src/lib/libc/string/index.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libc/string/index.c b/src/lib/libc/string/index.c index 3d9c05f961..8e4b146493 100644 --- a/src/lib/libc/string/index.c +++ b/src/lib/libc/string/index.c | |||
@@ -32,19 +32,17 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | /*static char *sccsid = "from: @(#)index.c 5.7 (Berkeley) 2/24/91";*/ | 35 | static char *rcsid = "$OpenBSD: index.c,v 1.3 2002/07/24 04:16:01 millert Exp $"; |
36 | static char *rcsid = "$Id: index.c,v 1.1.1.1 1995/10/18 08:42:21 deraadt Exp $"; | ||
37 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
38 | 37 | ||
39 | #include <string.h> | 38 | #include <string.h> |
40 | 39 | ||
41 | char * | 40 | char * |
42 | #ifdef STRCHR | 41 | #ifdef STRCHR |
43 | strchr(p, ch) | 42 | strchr(const char *p, int ch) |
44 | #else | 43 | #else |
45 | index(p, ch) | 44 | index(const char *p, int ch) |
46 | #endif | 45 | #endif |
47 | register const char *p, ch; | ||
48 | { | 46 | { |
49 | for (;; ++p) { | 47 | for (;; ++p) { |
50 | if (*p == ch) | 48 | if (*p == ch) |