From: Nickolay S. <sk...@us...> - 2004-09-18 05:32:51
|
Build Version : T2.0.0.8330 Firebird 2.0 UNSTABLE (writeBuildNum.sh,v 1.8331 2004/09/18 05:32:08 skidder Exp ) Update of /cvsroot/firebird/firebird2/src/lock In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12805/src/lock Modified Files: Tag: B1_5_Release print.cpp Log Message: Backport fix for the broken CURRENT_TIMESTAMP issue on 64-bit platforms Index: print.cpp =================================================================== RCS file: /cvsroot/firebird/firebird2/src/lock/print.cpp,v retrieving revision 1.19.2.1 retrieving revision 1.19.2.2 diff -b -U3 -r1.19.2.1 -r1.19.2.2 --- print.cpp 9 Oct 2003 23:08:35 -0000 1.19.2.1 +++ print.cpp 18 Sep 2004 05:32:10 -0000 1.19.2.2 @@ -577,12 +577,13 @@ * **************************************/ struct tm d; - ULONG clock, i; + time_t clock; + ULONG i; struct lhb base, prior; ULONG factor; clock = time(NULL); - d = *localtime((time_t*)&clock); + d = *localtime(&clock); FPRINTF(outfile, "%02d:%02d:%02d ", d.tm_hour, d.tm_min, d.tm_sec); @@ -618,7 +619,7 @@ sleep(seconds); #endif clock = time(NULL); - d = *localtime((time_t*)&clock); + d = *localtime(&clock); FPRINTF(outfile, "%02d:%02d:%02d ", d.tm_hour, d.tm_min, d.tm_sec); |