summary refs log tree commit diff
path: root/benchtests/bench-memmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'benchtests/bench-memmem.c')
-rw-r--r--benchtests/bench-memmem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchtests/bench-memmem.c b/benchtests/bench-memmem.c
index 844031717b..4936b236a3 100644
--- a/benchtests/bench-memmem.c
+++ b/benchtests/bench-memmem.c
@@ -47,10 +47,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;