Fix const correctness (needed by gcc).
authorDavid Given <dg@cowlark.com>
Sat, 30 May 2015 10:26:46 +0000 (12:26 +0200)
committerDavid Given <dg@cowlark.com>
Sat, 30 May 2015 10:26:46 +0000 (12:26 +0200)
--HG--
extra : source : 6667b8989e26c545f8813b2d4ed6d7e8ec69ebb9

Library/libs/strstr.c

index 093fe5b..f59dbbc 100644 (file)
@@ -10,7 +10,7 @@
 char *strstr(const char *s1, const char *s2)
 {
    int l = strlen(s2);
-   char * p = s1;
+   char * p = (char *) s1;
 
    if( l==0 ) return p;