commit | f997e224fc30361fe683c6b5d0ba39718043ca8d | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Sat Aug 11 18:40:33 2012 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Sat Aug 11 18:40:33 2012 -0400 |
tree | 23e39fbe247ecef518e2ccdeb4bc9de26c808e0c | |
parent | 35c16933f03a3db49f3e2048759d850460c8a509 [diff] |
remove unused but buggy code from strstr.c
diff --git a/src/string/strstr.c b/src/string/strstr.c index 683cdd0..0649174 100644 --- a/src/string/strstr.c +++ b/src/string/strstr.c
@@ -25,16 +25,6 @@ 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))