commit 78f50052f168c1f93590568724acf30195fde4ef
parent 323c4e3e9108fa9333525d13f1e8626218b765b2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 31 Mar 2022 10:19:35 +0200
libc/localtime: Style changes
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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;
}