X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Findex.c;h=acd0a45fc0295bcafd7baf3f114ff9a4f8a8761f;hb=693dca065a58bf2dd39df9cff019b0c65e15e132;hp=a2e272783b908824d6903fd8ddaf9ecdb90d2c5e;hpb=2ee563b53258d390d7446e90a67f465d504ae44c;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/index.c b/libiberty/index.c index a2e272783b..acd0a45fc0 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); }