summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
diff options
context:
space:
mode:
authorrmax <rmax>2004-03-18 18:55:55 (GMT)
committerrmax <rmax>2004-03-18 18:55:55 (GMT)
commiteb482d45256bc2cbd79a7a1b72c2b5395d638818 (patch)
tree2538fb9cac9a8d49dbf80b9e182104ec533d86e8 /unix/tclUnixTime.c
parent395490646bbfb29fcab6b1b1b8a5e07a4df44a61 (diff)
downloadtcl-eb482d45256bc2cbd79a7a1b72c2b5395d638818.zip
tcl-eb482d45256bc2cbd79a7a1b72c2b5395d638818.tar.gz
tcl-eb482d45256bc2cbd79a7a1b72c2b5395d638818.tar.bz2
* generic/tclIntDecls.h: Removed TclpTime_t. It wasn't really needed,
* generic/tclInt.h: but caused warnings related to * generic/tclInt.decls: strict aliasing with GCC 3.3. * generic/tclClock.c: * generic/tclDate.c: * generic/tclGetDate.y: * win/tclWinTime.c: * unix/tclUnixTime.c:
Diffstat (limited to 'unix/tclUnixTime.c')
-rw-r--r--unix/tclUnixTime.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index 4f10312..aec0185 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.18 2003/05/19 17:25:37 kennykb Exp $
+ * RCS: @(#) $Id: tclUnixTime.c,v 1.19 2004/03/18 18:55:55 rmax Exp $
*/
#include "tclInt.h"
@@ -287,15 +287,13 @@ Tcl_GetTime(timePtr)
struct tm *
TclpGetDate(time, useGMT)
- TclpTime_t time;
+ CONST time_t *time;
int useGMT;
{
- CONST time_t *tp = (CONST time_t *)time;
-
if (useGMT) {
- return ThreadSafeGMTime(tp);
+ return ThreadSafeGMTime(time);
} else {
- return ThreadSafeLocalTime(tp);
+ return ThreadSafeLocalTime(time);
}
}