aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-12-29 01:25:41 +0000
committerwkj <devnull@localhost>2004-12-29 01:25:41 +0000
commit829e8223860ca6554c29749981dfa5c39f43ebfd (patch)
treee44396fe0494f37ac1b2642141eed17a530336d5 /src
parentc2070b2fc9d32d055104d55652d409a684f96881 (diff)
downloadplan9port-829e8223860ca6554c29749981dfa5c39f43ebfd.tar.gz
plan9port-829e8223860ca6554c29749981dfa5c39f43ebfd.tar.bz2
plan9port-829e8223860ca6554c29749981dfa5c39f43ebfd.zip
Appease the time_t monster.
Diffstat (limited to 'src')
-rw-r--r--src/lib9/date.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib9/date.c b/src/lib9/date.c
index 58a4a889..cc97f2ea 100644
--- a/src/lib9/date.c
+++ b/src/lib9/date.c
@@ -68,20 +68,24 @@ Tm2tm(Tm *bigtm, struct tm *tm)
}
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;