projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
setjmp: optimize longjmp prologues
[musl]
/
src
/
time
/
gmtime.c
diff --git
a/src/time/gmtime.c
b/src/time/gmtime.c
index
d4d5d1f
..
6320b63
100644
(file)
--- a/
src/time/gmtime.c
+++ b/
src/time/gmtime.c
@@
-1,11
+1,8
@@
-#include <time.h>
-
-#include "__time.h"
+#include "time_impl.h"
+#include <errno.h>
struct tm *gmtime(const time_t *t)
{
static struct tm tm;
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);
}
}