commit 829e8223860ca6554c29749981dfa5c39f43ebfd from: wkj date: Wed Dec 29 01:25:41 2004 UTC Appease the time_t monster. commit - c2070b2fc9d32d055104d55652d409a684f96881 commit + 829e8223860ca6554c29749981dfa5c39f43ebfd blob - 58a4a88925a725e8d5e0cfee46ad5faf8687c3df blob + cc97f2eae2feded6e5ff78901a0d356e6dbf2000 --- src/lib9/date.c +++ 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;