summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string/index.c')
-rw-r--r--src/lib/libc/string/index.c8
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";*/ 35static char *rcsid = "$OpenBSD: index.c,v 1.3 2002/07/24 04:16:01 millert Exp $";
36static 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
41char * 40char *
42#ifdef STRCHR 41#ifdef STRCHR
43strchr(p, ch) 42strchr(const char *p, int ch)
44#else 43#else
45index(p, ch) 44index(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)