ubsan: spu: left shift of negative value
[deliverable/binutils-gdb.git] / libiberty / index.c
index a2e272783b908824d6903fd8ddaf9ecdb90d2c5e..acd0a45fc0295bcafd7baf3f114ff9a4f8a8761f 100644 (file)
@@ -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);
 }
This page took 0.023636 seconds and 4 git commands to generate.