scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 225732294759254bc5b7268b54121c9e7f2c3def
parent e3a3444a1336b142f2463a18bec8a7ae23b7e942
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 31 Mar 2022 10:19:35 +0200

libc/localtime: Style changes

Diffstat:
Msrc/libc/time/localtime.c | 5++++-
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; }