diff options
Diffstat (limited to 'src/lib/libc/string/rindex.c')
| -rw-r--r-- | src/lib/libc/string/rindex.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 | ||
