diff options
| author | rmax <rmax> | 2004-03-18 18:55:55 (GMT) |
|---|---|---|
| committer | rmax <rmax> | 2004-03-18 18:55:55 (GMT) |
| commit | 41b2cbe8606b565ae6a2e320791e10d47c64b3df (patch) | |
| tree | 2538fb9cac9a8d49dbf80b9e182104ec533d86e8 /unix/tclUnixTime.c | |
| parent | 2dc65b8f7477fc1cf2c4aad6f66c4024ccedbb95 (diff) | |
| download | tcl-41b2cbe8606b565ae6a2e320791e10d47c64b3df.zip tcl-41b2cbe8606b565ae6a2e320791e10d47c64b3df.tar.gz tcl-41b2cbe8606b565ae6a2e320791e10d47c64b3df.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.c | 10 |
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); } } |
