Fix compiler warning in binsearch fix.

remotes/origin/master-1.0.x
Victor Julien 16 years ago
parent 9f78d47c2a
commit 73217d60b9

@ -51,7 +51,7 @@ BinSearch(const u_int8_t *haystack, size_t haystack_len,
}
/* one byte needles */
if (needle_len == 1)
return haystack;
return (u_int8_t *)haystack;
for (h = haystack+1, n++; h != hmax; h++, n++) {
//printf("h %c n %c\n", isprint(*h) ? *h : 'X', *n);

Loading…
Cancel
Save