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:
8f5a820
)
remove commented-out debug printf from strstr
author
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Nov 2018 16:04:41 +0000
(12:04 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 2 Nov 2018 16:04:41 +0000
(12:04 -0400)
this was leftover from before the initial commit.
src/string/strstr.c
patch
|
blob
|
history
diff --git
a/src/string/strstr.c
b/src/string/strstr.c
index c80e9caf6d9deb14241ba0edd9e5a0d0b349bd27..c7d6668265dc03610451f2f47e991dc155d81148 100644
(file)
--- a/
src/string/strstr.c
+++ b/
src/string/strstr.c
@@
-108,7
+108,6
@@
static char *twoway_strstr(const unsigned char *h, const unsigned char *n)
/* Check last byte first; advance by shift on mismatch */
if (BITOP(byteset, h[l-1], &)) {
k = l-shift[h[l-1]];
- //printf("adv by %zu (on %c) at [%s] (%zu;l=%zu)\n", k, h[l-1], h, shift[h[l-1]], l);
if (k) {
if (mem && k < p) k = l-p;
h += k;