From: Gurusamy Sarathy Date: Wed, 24 Feb 1999 02:49:04 +0000 (+0000) Subject: more "correct" utbuf for utime() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dd2821f63740d24c0791a9e301d66155498c92f0;p=p5sagit%2Fp5-mst-13.2.git more "correct" utbuf for utime() p4raw-id: //depot/perl@3014 --- diff --git a/doio.c b/doio.c index 79db3aa..3038c3d 100644 --- a/doio.c +++ b/doio.c @@ -1324,18 +1324,18 @@ nothing in the core. struct utimbuf utbuf; #else struct { - long actime; - long modtime; + Time_t actime; + Time_t modtime; } utbuf; #endif Zero(&utbuf, sizeof utbuf, char); #ifdef BIG_TIME - utbuf.actime = (Time_t)SvNVx(*++mark); /* time accessed */ - utbuf.modtime = (Time_t)SvNVx(*++mark); /* time modified */ + utbuf.actime = (Time_t)SvNVx(*++mark); /* time accessed */ + utbuf.modtime = (Time_t)SvNVx(*++mark); /* time modified */ #else - utbuf.actime = SvIVx(*++mark); /* time accessed */ - utbuf.modtime = SvIVx(*++mark); /* time modified */ + utbuf.actime = (Time_t)SvIVx(*++mark); /* time accessed */ + utbuf.modtime = (Time_t)SvIVx(*++mark); /* time modified */ #endif APPLY_TAINT_PROPER(); tot = sp - mark;