shithub: scc

Download patch

ref: 78f50052f168c1f93590568724acf30195fde4ef
parent: 323c4e3e9108fa9333525d13f1e8626218b765b2
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Thu Mar 31 06:19:35 EDT 2022

libc/localtime: Style changes

--- a/src/libc/time/localtime.c
+++ b/src/libc/time/localtime.c
@@ -7,9 +7,12 @@
 static time_t
 gmtoff(char *tz)
 {
-	for (struct tzone *t = tzones; t->name; t++)
+	struct tzone *t;
+
+	for (t = tzones; t->name; t++) {
 		if (!strcmp(t->name, tz))
 			return t->gmtoff;
+	}
 	return 0;
 }