diff options
Diffstat (limited to 'src/lib/libc/string/index.c')
-rw-r--r-- | src/lib/libc/string/index.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libc/string/index.c b/src/lib/libc/string/index.c index 50e9ca35ab..ebae15afe7 100644 --- a/src/lib/libc/string/index.c +++ b/src/lib/libc/string/index.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: index.c,v 1.5 2005/08/08 08:05:37 espie Exp $ */ | 1 | /* $OpenBSD: index.c,v 1.6 2014/11/30 19:43:56 deraadt Exp $ */ |
2 | /*- | 2 | /*- |
3 | * Copyright (c) 1990 The Regents of the University of California. | 3 | * Copyright (c) 1990 The Regents of the University of California. |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -31,11 +31,7 @@ | |||
31 | #include <string.h> | 31 | #include <string.h> |
32 | 32 | ||
33 | char * | 33 | char * |
34 | #ifdef STRCHR | ||
35 | strchr(const char *p, int ch) | ||
36 | #else | ||
37 | index(const char *p, int ch) | 34 | index(const char *p, int ch) |
38 | #endif | ||
39 | { | 35 | { |
40 | for (;; ++p) { | 36 | for (;; ++p) { |
41 | if (*p == ch) | 37 | if (*p == ch) |