summaryrefslogtreecommitdiff
path: root/libc/misc/time/gmtime.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-11 05:40:55 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-11 05:40:55 +0000
commitfd15708e6476164990e7b364dc5b2aa1600f8e89 (patch)
tree7627bd8a8c546f2fafd99fb52c1f96fdf4b242ce /libc/misc/time/gmtime.c
parenta4f07581502ee212aa45e7b0049fdd126dd10b40 (diff)
Begin the process of reworking the time functions for proper
time zone and locale support (in theory). More work is still needed. -Erik
Diffstat (limited to 'libc/misc/time/gmtime.c')
-rw-r--r--libc/misc/time/gmtime.c13
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;
}