summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2001-04-10 15:39:59 (GMT)
committerKevin B Kenny <kennykb@acm.org>2001-04-10 15:39:59 (GMT)
commit5367da449c723406a8e27ab0a53fe17516330000 (patch)
tree27e4c1be64f2846db8f007eafd6e2fddb4dc2c14
parent9d9a6c3f8f10ce01390a1913400adc27869c688c (diff)
downloadtcl-5367da449c723406a8e27ab0a53fe17516330000.zip
tcl-5367da449c723406a8e27ab0a53fe17516330000.tar.gz
tcl-5367da449c723406a8e27ab0a53fe17516330000.tar.bz2
Fixed silly typo in calls to 'gmtime' and 'localtime'.
-rw-r--r--ChangeLog5
-rw-r--r--unix/tclUnixTime.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a35182..be856d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-04-10 Kevin B. Kenny <kennykb@acm.org>
+
+ * unix/tclUnixTime.c: Fixed silly typo in calls to 'gmtime' and
+ 'localtime' that broke the Linux build.
+
2001-04-09 Kevin B. Kenny <kennykb@acm.org>
* unix/tclLoadShl.c: Added DYNAMIC_PATH to the load flags so that
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index b0c5e9f..de07aa3 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclUnixTime.c,v 1.8 2001/04/09 23:02:21 kennykb Exp $
+ * RCS: @(#) $Id: tclUnixTime.c,v 1.9 2001/04/10 15:39:59 kennykb Exp $
*/
#include "tclInt.h"
@@ -368,7 +368,7 @@ ThreadSafeGMTime( timePtr )
gmtime_r( timePtr, tmPtr );
#else
Tcl_MutexLock( & tmMutex );
- *tmPtr = gmtime( timePtr );
+ *tmPtr = *gmtime( timePtr );
Tcl_MutexUnlock( &tmMutex );
#endif
return tmPtr;
@@ -409,7 +409,7 @@ ThreadSafeLocalTime( timePtr )
localtime_r( timePtr, tmPtr );
#else
Tcl_MutexLock( & tmMutex );
- *tmPtr = localtime( timePtr );
+ *tmPtr = *localtime( timePtr );
Tcl_MutexUnlock( &tmMutex );
#endif
return tmPtr;