From f997e224fc30361fe683c6b5d0ba39718043ca8d Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 11 Aug 2012 18:40:33 -0400 Subject: [PATCH] remove unused but buggy code from strstr.c --- src/string/strstr.c | 10 ---------- 1 file changed, 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)) -- 2.25.1