diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-08-11 18:40:33 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-08-11 18:40:33 -0400 |
commit | f997e224fc30361fe683c6b5d0ba39718043ca8d (patch) | |
tree | 23e39fbe247ecef518e2ccdeb4bc9de26c808e0c | |
parent | 35c16933f03a3db49f3e2048759d850460c8a509 (diff) | |
download | musl-f997e224fc30361fe683c6b5d0ba39718043ca8d.tar.gz musl-f997e224fc30361fe683c6b5d0ba39718043ca8d.tar.xz musl-f997e224fc30361fe683c6b5d0ba39718043ca8d.zip |
remove unused but buggy code from strstr.c
-rw-r--r-- | src/string/strstr.c | 10 |
1 files changed, 0 insertions, 10 deletions
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)) |