X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Ftime%2Ftzset.c;h=7e836c2fde061783cd160e12faee8e50367ce3d3;hp=6d69957e1370f9014c9b3996240a1eadef241acc;hb=f1292e3d28309bbc81f61671164843cec4319bfa;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/src/time/tzset.c b/src/time/tzset.c index 6d69957e..7e836c2f 100644 --- a/src/time/tzset.c +++ b/src/time/tzset.c @@ -15,15 +15,14 @@ int __dst_offset = 0; weak_alias(__timezone, timezone); weak_alias(__daylight, daylight); weak_alias(__tzname, tzname); -weak_alias(__dst_offset, dst_offset); static char std_name[TZNAME_MAX+1]; static char dst_name[TZNAME_MAX+1]; /* all elements are zero-based */ static struct rule { - char month; - char week; + signed char month; + signed char week; short day; int time; } __dst_start, __dst_end; @@ -107,12 +106,12 @@ void tzset(void) void __tzset(void) { - static int lock, init; + static int lock[2], init; if (init) return; - LOCK(&lock); + LOCK(lock); if (!init) tzset(); init=1; - UNLOCK(&lock); + UNLOCK(lock); } static int is_leap(int year)