summaryrefslogtreecommitdiff
path: root/libiberty/index.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2010-10-19 21:13:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2010-10-19 21:13:25 +0000
commit7a815afd9b5121ee0f65dc1e1de1c0de6de97679 (patch)
treef61b968a46c92e81f6de581582cb064bf9dca27d /libiberty/index.c
parent42f6b9ffef1927d55d15075d9e810435c590c404 (diff)
Notes
Diffstat (limited to 'libiberty/index.c')
-rw-r--r--libiberty/index.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libiberty/index.c b/libiberty/index.c
index a2e272783b90..acd0a45fc029 100644
--- a/libiberty/index.c
+++ b/libiberty/index.c
@@ -12,12 +12,10 @@ deprecated in new programs in favor of @code{strchr}.
*/
-extern char * strchr();
+extern char * strchr(const char *, int);
char *
-index (s, c)
- char *s;
- int c;
+index (const char *s, int c)
{
return strchr (s, c);
}