diff options
author | Richard Henderson <rth@cygnus.com> | 1998-04-27 15:53:54 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1998-04-27 15:53:54 -0700 |
commit | 70e1ce21e5e35bfad92affd8c23a66fe53ed13aa (patch) | |
tree | b86ab27374a52829fa54e04065e57a4e80f30347 /libf2c/libU77/ltime_.c | |
parent | 8746c235643f933be01161215004993606b94a8a (diff) | |
download | gcc-70e1ce21e5e35bfad92affd8c23a66fe53ed13aa.zip gcc-70e1ce21e5e35bfad92affd8c23a66fe53ed13aa.tar.gz gcc-70e1ce21e5e35bfad92affd8c23a66fe53ed13aa.tar.bz2 |
* libU77/ltime_.c: Bounce the ftnint argument through a local time_t.
From-SVN: r19457
Diffstat (limited to 'libf2c/libU77/ltime_.c')
-rw-r--r-- | libf2c/libU77/ltime_.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libf2c/libU77/ltime_.c b/libf2c/libU77/ltime_.c index 151ac6c..673a0db 100644 --- a/libf2c/libU77/ltime_.c +++ b/libf2c/libU77/ltime_.c @@ -33,14 +33,15 @@ Boston, MA 02111-1307, USA. */ #include "f2c.h" #ifdef KR_headers -/* Subroutine */ int G77_ltime_0 (stime, tarray) - integer *stime, tarray[9]; +/* Subroutine */ int G77_ltime_0 (xstime, tarray) + integer *xstime, tarray[9]; #else -/* Subroutine */ int G77_ltime_0 (const integer * stime, integer tarray[9]) +/* Subroutine */ int G77_ltime_0 (const integer * xstime, integer tarray[9]) #endif { struct tm *lt; - lt = localtime ((time_t *) stime); + time_t stime = *xstime; + lt = localtime (&stime); tarray[0] = lt->tm_sec; tarray[1] = lt->tm_min; tarray[2] = lt->tm_hour; |