summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2004-03-19 18:33:51 (GMT)
committerKevin B Kenny <kennykb@acm.org>2004-03-19 18:33:51 (GMT)
commit2e5d5696ba21142b2af832196c9428971bc198c8 (patch)
treeac851f22aa1fdc090d2c9af4d6bf279a072ab214 /win/tclWinTime.c
parent5ae57fc1b695b72d90d0b098b8f514621ff7e3ed (diff)
downloadtcl-2e5d5696ba21142b2af832196c9428971bc198c8.zip
tcl-2e5d5696ba21142b2af832196c9428971bc198c8.tar.gz
tcl-2e5d5696ba21142b2af832196c9428971bc198c8.tar.bz2
Made HEAD build on Windows VC++ again.
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 1ab09a8..ccb47fe 100644
--- a/win/tclWinTime.c
+++ b/win/tclWinTime.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: tclWinTime.c,v 1.22 2004/03/18 18:56:04 rmax Exp $
+ * RCS: @(#) $Id: tclWinTime.c,v 1.23 2004/03/19 18:33:53 kennykb Exp $
*/
#include "tclWinInt.h"
@@ -545,7 +545,7 @@ TclpGetTZName(int dst)
struct tm *
TclpGetDate(t, useGMT)
- CONST time_t t;
+ CONST time_t *t;
int useGMT;
{
struct tm *tmPtr;
@@ -570,14 +570,14 @@ TclpGetDate(t, useGMT)
H. Giese, June 2003
*/
#ifdef __BORLANDC__
- if (t >= SECSPERDAY) {
+ if (*t >= SECSPERDAY) {
#else
- if (t >= 0) {
+ if (*t >= 0) {
#endif
- return localtime(tp);
+ return localtime(t);
}
- time = t - timezone;
+ time = *t - timezone;
/*
* If we aren't near to overflowing the long, just add the bias and
@@ -585,11 +585,11 @@ TclpGetDate(t, useGMT)
* the result at the end.
*/
- if (t < (LONG_MAX - 2 * SECSPERDAY)
- && t > (LONG_MIN + 2 * SECSPERDAY)) {
+ if (*t < (LONG_MAX - 2 * SECSPERDAY)
+ && *t > (LONG_MIN + 2 * SECSPERDAY)) {
tmPtr = ComputeGMT(&time);
} else {
- tmPtr = ComputeGMT(&t);
+ tmPtr = ComputeGMT(t);
tzset();
@@ -625,7 +625,7 @@ TclpGetDate(t, useGMT)
tmPtr->tm_wday = (tmPtr->tm_wday + time) % 7;
}
} else {
- tmPtr = ComputeGMT(&t);
+ tmPtr = ComputeGMT(t);
}
return tmPtr;
}