summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/rindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/rindex.c')
-rw-r--r--src/lib/libc/string/rindex.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libc/string/rindex.c b/src/lib/libc/string/rindex.c
index 1b84c92072..7c7c94ae81 100644
--- a/src/lib/libc/string/rindex.c
+++ b/src/lib/libc/string/rindex.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: @(#)rindex.c 5.9 (Berkeley) 2/24/91";*/ 35static char *rcsid = "$OpenBSD: rindex.c,v 1.3 2002/07/24 04:16:01 millert Exp $";
36static char *rcsid = "$Id: rindex.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
41char * 40char *
42#ifdef STRRCHR 41#ifdef STRRCHR
43strrchr(p, ch) 42strrchr(const char *p, int ch)
44#else 43#else
45rindex(p, ch) 44rindex(const char *p, int ch)
46#endif 45#endif
47 register const char *p, ch;
48{ 46{
49 register char *save; 47 register char *save;
50 48