Browse Source

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.
Marcus Haehnel 2 months ago
parent
commit
76c311c44a

+ 1 - 1
extra/locale/programs/locale.c

@@ -231,7 +231,7 @@ static void find_locale_string(locale_entry * loc_rec, char *loc)
 		*loc = '\0';
 	} else {
 		dotcs = (uint16_t) loc_rec->dot_cs;
-		cs = (uint16_t) loc_rec->cs;;
+		cs = (uint16_t) loc_rec->cs;
 		loc = strncpy(loc, GET_LOCALE_NAME(idx), 5);
 
 		if (loc[2] == '_') {

+ 1 - 1
ldso/include/dl-string.h

@@ -103,7 +103,7 @@ static __always_inline char * _dl_strstr(const char *s1, const char *s2)
 
 	do {
 		if (!*p)
-			return (char *) s1;;
+			return (char *) s1;
 		if (*p == *s) {
 			++p;
 			++s;

+ 1 - 1
libc/misc/time/time.c

@@ -1311,7 +1311,7 @@ ISO_LOOP:
 
 			j = (i & 128) ? 100: 12;
 			if (i & 64) {
-				field_val /= j;;
+				field_val /= j;
 			}
 			if (i & 32) {
 				field_val %= j;

+ 1 - 1
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)))

+ 1 - 1
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;

+ 2 - 2
libc/unistd/sysconf.c

@@ -46,7 +46,7 @@
 long int get_phys_pages(void)
 {
 	struct sysinfo si;
-	int ps = getpagesize();;
+	int ps = getpagesize();
 
 	sysinfo(&si);
 
@@ -59,7 +59,7 @@ long int get_phys_pages(void)
 long int get_avphys_pages(void)
 {
 	struct sysinfo si;
-	int ps = getpagesize();;
+	int ps = getpagesize();
 
 	sysinfo(&si);