diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-11 14:21:06 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:35 -0400 |
commit | c52ae69844c2e56f84bc159af4cc6bf0fd107d84 (patch) | |
tree | 63bb8f69e5f9b32a121b95664076eb99ac3fb185 /src | |
parent | 81e19341d8bb2f2a9f908ed9a633666207d5207e (diff) | |
download | musl-c52ae69844c2e56f84bc159af4cc6bf0fd107d84.zip musl-c52ae69844c2e56f84bc159af4cc6bf0fd107d84.tar.gz musl-c52ae69844c2e56f84bc159af4cc6bf0fd107d84.tar.bz2 |
move declaration and apply hidden visibility to __utc string
Diffstat (limited to 'src')
-rw-r--r-- | src/time/gmtime_r.c | 2 | ||||
-rw-r--r-- | src/time/time_impl.h | 1 | ||||
-rw-r--r-- | src/time/timegm.c | 2 |
3 files changed, 1 insertions, 4 deletions
diff --git a/src/time/gmtime_r.c b/src/time/gmtime_r.c index cba7244..e529799 100644 --- a/src/time/gmtime_r.c +++ b/src/time/gmtime_r.c @@ -2,8 +2,6 @@ #include <errno.h> #include "libc.h" -extern const char __utc[]; - struct tm *__gmtime_r(const time_t *restrict t, struct tm *restrict tm) { if (__secs_to_tm(*t, tm) < 0) { diff --git a/src/time/time_impl.h b/src/time/time_impl.h index 43251d2..f26d800 100644 --- a/src/time/time_impl.h +++ b/src/time/time_impl.h @@ -8,3 +8,4 @@ hidden const char *__tm_to_tzname(const struct tm *); hidden int __secs_to_tm(long long, struct tm *); hidden void __secs_to_zone(long long, int, int *, long *, long *, const char **); hidden const char *__strftime_fmt_1(char (*)[100], size_t *, int, const struct tm *, locale_t, int); +extern hidden const char __utc[]; diff --git a/src/time/timegm.c b/src/time/timegm.c index f444e76..4e5907d 100644 --- a/src/time/timegm.c +++ b/src/time/timegm.c @@ -2,8 +2,6 @@ #include "time_impl.h" #include <errno.h> -extern const char __utc[]; - time_t timegm(struct tm *tm) { struct tm new; |