OSDN Git Service

PR libstdc++/54388
[pf3gnuchains/gcc-fork.git] / libiberty / index.c
index c37edca..acd0a45 100644 (file)
@@ -15,7 +15,7 @@ deprecated in new programs in favor of @code{strchr}.
 extern char * strchr(const char *, int);
 
 char *
-index (char *s, int c)
+index (const char *s, int c)
 {
   return strchr (s, c);
 }