diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libc/string/index.c | 7 | ||||
-rw-r--r-- | src/lib/libc/string/rindex.c | 7 |
2 files changed, 6 insertions, 8 deletions
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 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: index.c,v 1.2 1996/08/19 08:34:02 tholo Exp $"; | 35 | static char *rcsid = "$OpenBSD: index.c,v 1.3 2002/07/24 04:16:01 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <string.h> | 38 | #include <string.h> |
39 | 39 | ||
40 | char * | 40 | char * |
41 | #ifdef STRCHR | 41 | #ifdef STRCHR |
42 | strchr(p, ch) | 42 | strchr(const char *p, int ch) |
43 | #else | 43 | #else |
44 | index(p, ch) | 44 | index(const char *p, int ch) |
45 | #endif | 45 | #endif |
46 | register const char *p, ch; | ||
47 | { | 46 | { |
48 | for (;; ++p) { | 47 | for (;; ++p) { |
49 | if (*p == ch) | 48 | 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 @@ | |||
32 | */ | 32 | */ |
33 | 33 | ||
34 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
35 | static char *rcsid = "$OpenBSD: rindex.c,v 1.2 1996/08/19 08:34:08 tholo Exp $"; | 35 | static char *rcsid = "$OpenBSD: rindex.c,v 1.3 2002/07/24 04:16:01 millert Exp $"; |
36 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
37 | 37 | ||
38 | #include <string.h> | 38 | #include <string.h> |
39 | 39 | ||
40 | char * | 40 | char * |
41 | #ifdef STRRCHR | 41 | #ifdef STRRCHR |
42 | strrchr(p, ch) | 42 | strrchr(const char *p, int ch) |
43 | #else | 43 | #else |
44 | rindex(p, ch) | 44 | rindex(const char *p, int ch) |
45 | #endif | 45 | #endif |
46 | register const char *p, ch; | ||
47 | { | 46 | { |
48 | register char *save; | 47 | register char *save; |
49 | 48 | ||