commit | 829e8223860ca6554c29749981dfa5c39f43ebfd | [log] [tgz] |
---|---|---|
author | wkj <devnull@localhost> | Wed Dec 29 01:25:41 2004 +0000 |
committer | wkj <devnull@localhost> | Wed Dec 29 01:25:41 2004 +0000 |
tree | e44396fe0494f37ac1b2642141eed17a530336d5 | |
parent | c2070b2fc9d32d055104d55652d409a684f96881 [diff] |
Appease the time_t monster.
diff --git a/src/lib9/date.c b/src/lib9/date.c index 58a4a88..cc97f2e 100644 --- a/src/lib9/date.c +++ b/src/lib9/date.c
@@ -68,20 +68,24 @@ } Tm* -p9gmtime(long t) +p9gmtime(long x) { + time_t t; struct tm tm; + t = (time_t)x; tm = *gmtime(&t); tm2Tm(&tm, &bigtm); return &bigtm; } Tm* -p9localtime(long t) +p9localtime(long x) { + time_t t; struct tm tm; + t = (time_t)x; tm = *localtime(&t); tm2Tm(&tm, &bigtm); return &bigtm;