diff options
Diffstat (limited to 'libc/misc/time/gmtime.c')
-rw-r--r-- | libc/misc/time/gmtime.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/libc/misc/time/gmtime.c b/libc/misc/time/gmtime.c index 03cc9d56c..e9d648037 100644 --- a/libc/misc/time/gmtime.c +++ b/libc/misc/time/gmtime.c @@ -3,12 +3,11 @@ extern void __tm_conv(); -struct tm *gmtime(timep) -__const time_t *timep; -{ - static struct tm tmb; - - __tm_conv(&tmb, timep, 0L); +/* Our static data lives in __time_static.c */ +extern struct tm __tmb; - return &tmb; +struct tm *gmtime(__const time_t *timep) +{ + __tm_conv(&__tmb, timep, 0L); + return &__tmb; } |