diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-24 02:49:04 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-02-24 02:49:04 +0000 |
commit | dd2821f63740d24c0791a9e301d66155498c92f0 (patch) | |
tree | 2fc781796283708305364d7495c39a1fa945fb21 /doio.c | |
parent | cd488c120363b3ff387447589a3dee254639b484 (diff) | |
download | perl-dd2821f63740d24c0791a9e301d66155498c92f0.tar.gz |
more "correct" utbuf for utime()
p4raw-id: //depot/perl@3014
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |