X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2Fgmtime.c;h=6320b6377e62310dfde727d165085e162480d7d2;hb=4554f155dd23a65fcdfd39f1d5af8af55ba37694;hp=d4d5d1f1ca19b72ba74b5408e02a99bccd8bd47c;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/time/gmtime.c b/src/time/gmtime.c index d4d5d1f1..6320b637 100644 --- a/src/time/gmtime.c +++ b/src/time/gmtime.c @@ -1,11 +1,8 @@ -#include - -#include "__time.h" +#include "time_impl.h" +#include struct tm *gmtime(const time_t *t) { static struct tm tm; - __time_to_tm(*t, &tm); - tm.tm_isdst = 0; - return &tm; + return __gmtime_r(t, &tm); }