mirror of
git://git.musl-libc.org/musl
synced 2025-02-21 05:16:50 +00:00
remove unused but buggy code from strstr.c
This commit is contained in:
parent
35c16933f0
commit
f997e224fc
@ -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))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user