summaryrefslogtreecommitdiff
path: root/libiberty/index.c
diff options
context:
space:
mode:
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 a2e272783b..c37edca024 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 (char *s, int c)
{
return strchr (s, c);
}