]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - string/test-memmem.c
Make mktime etc. compatible with __time64_t
[thirdparty/glibc.git] / string / test-memmem.c
index 51f58d1eda104f1e2fa4fa544fd53cee4f6a7376..2ac7f18c71bae770868a9155c4e46e76be717a6b 100644 (file)
@@ -1,5 +1,5 @@
 /* Test and measure memmem functions.
-   Copyright (C) 2008-2018 Free Software Foundation, Inc.
+   Copyright (C) 2008-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Ulrich Drepper <drepper@redhat.com>, 2008.
 
@@ -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;