diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/strcspn.c | 4 | ||||
-rw-r--r-- | string/test-memmem.c | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/string/strcspn.c b/string/strcspn.c index e9fb8c5cb2..1105bcf931 100644 --- a/string/strcspn.c +++ b/string/strcspn.c @@ -30,8 +30,8 @@ size_t STRCSPN (const char *str, const char *reject) { - if (__glibc_unlikely (reject[0] == '\0') || - __glibc_unlikely (reject[1] == '\0')) + if (__glibc_unlikely (reject[0] == '\0') + || __glibc_unlikely (reject[1] == '\0')) return __strchrnul (str, reject [0]) - str; /* Use multiple small memsets to enable inlining on most targets. */ diff --git a/string/test-memmem.c b/string/test-memmem.c index bdd14e2a8c..2ac7f18c71 100644 --- a/string/test-memmem.c +++ b/string/test-memmem.c @@ -48,10 +48,10 @@ simple_memmem (const void *haystack, size_t haystack_len, const void *needle, return NULL; for (begin = (const char *) haystack; begin <= last_possible; ++begin) - if (begin[0] == ((const char *) needle)[0] && - !memcmp ((const void *) &begin[1], - (const void *) ((const char *) needle + 1), - needle_len - 1)) + if (begin[0] == ((const char *) needle)[0] + && !memcmp ((const void *) &begin[1], + (const void *) ((const char *) needle + 1), + needle_len - 1)) return (void *) begin; return NULL; |