summaryrefslogtreecommitdiffstats
path: root/win/tclWinTime.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-01-10 22:58:39 (GMT)
committernijtmans <nijtmans>2010-01-10 22:58:39 (GMT)
commita81c8243240443b1ffe54faec5e49d7e5dba4ee6 (patch)
treedbbc67aa5fc759bc2ea978873fb23e5c3a614329 /win/tclWinTime.c
parent997d61c0f6049d4bc0dd57aefc84e5f7f12c4ac2 (diff)
downloadtcl-a81c8243240443b1ffe54faec5e49d7e5dba4ee6.zip
tcl-a81c8243240443b1ffe54faec5e49d7e5dba4ee6.tar.gz
tcl-a81c8243240443b1ffe54faec5e49d7e5dba4ee6.tar.bz2
* win/tclWinDde.c: VC++ 6.0 doesn't have
* win/tclWinReg.c PDWORD_PTR * win/tclWinThrd.c: Fix various minor gcc warnings. * win/tclWinTime.c * win/tclWinConsole.c Put channel type definitions * win/tclWinChan.c in static const memory * win/tclWinPipe.c * win/tclWinSerial.c * win/tclWinSock.c * generic/tclIOGT.c * generic/tclIORChan.c * generic/tclIORTrans.c * unix/tclUnixChan.c * unix/tclUnixPipe.c * unix/tclUnixSock.c * unix/configure (regenerated with autoconf 2.59) * tests/info.test: Make test independant from tcltest implementation.
Diffstat (limited to 'win/tclWinTime.c')
-rw-r--r--win/tclWinTime.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinTime.c b/win/tclWinTime.c
index 6fa0017..9b30247 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.35 2008/10/26 18:43:27 dkf Exp $
+ * RCS: @(#) $Id: tclWinTime.c,v 1.36 2010/01/10 22:58:39 nijtmans Exp $
*/
#include "tclInt.h"
@@ -29,11 +29,11 @@
* month, where index 1 is January.
*/
-static int normalDays[] = {
+static const int normalDays[] = {
-1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364
};
-static int leapDays[] = {
+static const int leapDays[] = {
-1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365
};
@@ -89,7 +89,7 @@ typedef struct TimeInfo {
} TimeInfo;
static TimeInfo timeInfo = {
- { NULL },
+ { NULL, 0, 0, NULL, NULL, 0 },
0,
0,
(HANDLE) NULL,
@@ -736,7 +736,7 @@ ComputeGMT(
struct tm *tmPtr;
long tmp, rem;
int isLeap;
- int *days;
+ const int *days;
ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey);
tmPtr = &tsdPtr->tm;