From ee7dd0c249947486406c423b6b092195adc6824b Mon Sep 17 00:00:00 2001 From: rth Date: Mon, 27 Apr 1998 23:00:10 +0000 Subject: [PATCH] Bounce the ftnint argument through a local time_t. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19460 138bc75d-0d04-0410-961f-82ee72b054a4 --- libf2c/ChangeLog.egcs | 1 + libf2c/libU77/gmtime_.c | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/libf2c/ChangeLog.egcs b/libf2c/ChangeLog.egcs index 81116dac692..5d3f369a737 100644 --- a/libf2c/ChangeLog.egcs +++ b/libf2c/ChangeLog.egcs @@ -1,6 +1,7 @@ Mon Apr 27 22:52:31 1998 Richard Henderson * libU77/ltime_.c: Bounce the ftnint argument through a local time_t. + * libU77/gmtime_.c: Likewise. Sun Apr 26 18:07:56 1998 Richard Henderson diff --git a/libf2c/libU77/gmtime_.c b/libf2c/libU77/gmtime_.c index 5f6f8ec6a0b..63ad871bbd0 100644 --- a/libf2c/libU77/gmtime_.c +++ b/libf2c/libU77/gmtime_.c @@ -33,14 +33,15 @@ Boston, MA 02111-1307, USA. */ #include "f2c.h" #ifdef KR_headers -/* Subroutine */ int G77_gmtime_0 (stime, tarray) - integer *stime, tarray[9]; +/* Subroutine */ int G77_gmtime_0 (xstime, tarray) + integer *xstime, tarray[9]; #else -/* Subroutine */ int G77_gmtime_0 (const integer * stime, integer tarray[9]) +/* Subroutine */ int G77_gmtime_0 (const integer * xstime, integer tarray[9]) #endif { struct tm *lt; - lt = gmtime ((time_t *) stime); + time_t stime = *xstime; + lt = gmtime (&stime); tarray[0] = lt->tm_sec; tarray[1] = lt->tm_min; tarray[2] = lt->tm_hour; -- 2.11.4.GIT