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.c6
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
33char * 33char *
34#ifdef STRCHR
35strchr(const char *p, int ch)
36#else
37index(const char *p, int ch) 34index(const char *p, int ch)
38#endif
39{ 35{
40 for (;; ++p) { 36 for (;; ++p) {
41 if (*p == ch) 37 if (*p == ch)