summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--win/tclWinSerial.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 758494a..a3aaec4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2002-07-19 Donal K. Fellows <fellowsd@cs.man.ac.uk>
+ * win/tclWinSerial.c (no_timeout): Made this variable static.
+
* generic/tclExecute.c, generic/tclCompile.c, generic/tclBasic.c:
* generic/tclCompile.h (builtinFuncTable, instructionTable): Added
prefix to these symbols because they are visible outside the Tcl
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index 6a60700..e5e69fa 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -11,7 +11,7 @@
*
* Serial functionality implemented by Rolf.Schroedter@dlr.de
*
- * RCS: @(#) $Id: tclWinSerial.c,v 1.20 2002/01/25 21:36:10 dgp Exp $
+ * RCS: @(#) $Id: tclWinSerial.c,v 1.21 2002/07/19 13:59:10 dkf Exp $
*/
#include "tclWinInt.h"
@@ -147,7 +147,11 @@ typedef struct SerialEvent {
* pointer. */
} SerialEvent;
-COMMTIMEOUTS no_timeout = { /* We don't use timeouts */
+/*
+ * We don't use timeouts.
+ */
+
+static COMMTIMEOUTS no_timeout = {
0, /* ReadIntervalTimeout */
0, /* ReadTotalTimeoutMultiplier */
0, /* ReadTotalTimeoutConstant */