minor comment improvement

This commit is contained in:
Tal Einat 2014-05-17 02:03:42 +03:00
parent 34248d06fd
commit 085ba0bd59
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ void *simple_memmem(const void *haystack, size_t haystacklen,
return (void *) haystack; return (void *) haystack;
break; break;
case (1): case (1):
/* special-case for single-character needles */ /* special case for single-character needles */
return memchr(haystack, *((unsigned char*) needle), haystacklen); return memchr(haystack, *((unsigned char*) needle), haystacklen);
break; break;
} }
@ -102,7 +102,7 @@ void *simple_memmem_with_needle_sum(const void *haystack, size_t haystacklen,
return (void *) haystack; return (void *) haystack;
break; break;
case (1): case (1):
/* special-case for single-character needles */ /* special case for single-character needles */
return memchr(haystack, *((unsigned char*) needle), haystacklen); return memchr(haystack, *((unsigned char*) needle), haystacklen);
break; break;
} }