X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2Ftzset.c;h=7e836c2fde061783cd160e12faee8e50367ce3d3;hb=50d9661d9b231f503b21e9d8787d1411b864d58a;hp=0cd47cf20707633b8cd7ed17ad2e612ce8d310a9;hpb=471c6067d9a0665809a125260a7dede8ee357f98;p=musl diff --git a/src/time/tzset.c b/src/time/tzset.c index 0cd47cf2..7e836c2f 100644 --- a/src/time/tzset.c +++ b/src/time/tzset.c @@ -106,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)