projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35c1693
)
remove unused but buggy code from strstr.c
author
Rich Felker
<dalias@aerifal.cx>
Sat, 11 Aug 2012 22:40:33 +0000
(18:40 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 11 Aug 2012 22:40:33 +0000
(18:40 -0400)
src/string/strstr.c
patch
|
blob
|
history
diff --git
a/src/string/strstr.c
b/src/string/strstr.c
index 683cdd0143e2f90f6d0849c1becede3fc4ad0b82..0649174838cc860db7eb086dff32bb81a94e2ab0 100644
(file)
--- 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))