From 76c311c44ab684dca1ac0834f3afe40188ef8812 Mon Sep 17 00:00:00 2001 From: Marcus Haehnel Date: Tue, 20 Feb 2024 09:39:28 +0100 Subject: Remove duplicate semicolons While they are not a problem per-se they cause issues with some tooling (such as clang coverage) and are confusing to the reader. --- libc/string/strcasestr.c | 2 +- libc/string/strstr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libc/string') diff --git a/libc/string/strcasestr.c b/libc/string/strcasestr.c index 3334086bf..8f57cc0a3 100644 --- a/libc/string/strcasestr.c +++ b/libc/string/strcasestr.c @@ -16,7 +16,7 @@ char *strcasestr(const char *s1, const char *s2) #if 1 do { if (!*p) { - return (char *) s1;; + return (char *) s1; } if ((*p == *s) || (tolower(*((unsigned char *)p)) == tolower(*((unsigned char *)s))) diff --git a/libc/string/strstr.c b/libc/string/strstr.c index 7e2a64e7d..bf56b9c12 100644 --- a/libc/string/strstr.c +++ b/libc/string/strstr.c @@ -22,7 +22,7 @@ Wchar *Wstrstr(const Wchar *s1, const Wchar *s2) do { if (!*p) { - return (Wchar *) s1;; + return (Wchar *) s1; } if (*p == *s) { ++p; -- cgit v1.2.3