From: Rich Felker Date: Sat, 11 Aug 2012 22:40:33 +0000 (-0400) Subject: remove unused but buggy code from strstr.c X-Git-Tag: v0.9.4~19 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f997e224fc30361fe683c6b5d0ba39718043ca8d;p=oweals%2Fmusl.git remove unused but buggy code from strstr.c --- diff --git a/src/string/strstr.c b/src/string/strstr.c index 683cdd01..06491748 100644 --- a/src/string/strstr.c +++ b/src/string/strstr.c @@ -25,16 +25,6 @@ static char *fourbyte_strstr(const unsigned char *h, const unsigned char *n) return *h ? (char *)h-3 : 0; } -#if 0 -static char *naive_strstr(const char *h, const char *n) -{ - size_t i; - for (i=0; n[i] && h[i]; i++) - for ( ; n[i] != h[i]; h++, i=0); - return n[i] ? 0 : (char *)h; -} -#endif - #define MAX(a,b) ((a)>(b)?(a):(b)) #define MIN(a,b) ((a)<(b)?(a):(b))