summaryrefslogtreecommitdiffstats
path: root/win/tclWinSerial.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-08-06 08:48:57 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-08-06 08:48:57 (GMT)
commitbdccdff251d22ea453a7e919a6d9877a1d295526 (patch)
tree307bced75d43ff380e0320b0a7f753245475c553 /win/tclWinSerial.c
parent2b1db29c1c22c136a33ecefc4e021bd22c58f17e (diff)
downloadtcl-bdccdff251d22ea453a7e919a6d9877a1d295526.zip
tcl-bdccdff251d22ea453a7e919a6d9877a1d295526.tar.gz
tcl-bdccdff251d22ea453a7e919a6d9877a1d295526.tar.bz2
fix two minor blunders, introduced by [1fb35ca910]
Only define _USE_32BIT_TIME_T for Tcl build, and only once.
Diffstat (limited to 'win/tclWinSerial.c')
-rw-r--r--win/tclWinSerial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinSerial.c b/win/tclWinSerial.c
index fb7f69b..9e9d1af 100644
--- a/win/tclWinSerial.c
+++ b/win/tclWinSerial.c
@@ -2002,7 +2002,7 @@ SerialSetOptionProc(
if (interp != NULL) {
TclWinConvertError(GetLastError());
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't get comm state: ", Tcl_PosixError(interp)));
+ "can't get comm state: %s", Tcl_PosixError(interp)));
}
return TCL_ERROR;
@@ -2010,7 +2010,7 @@ SerialSetOptionProc(
if (interp != NULL) {
TclWinConvertError(GetLastError());
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
- "can't set comm state: ", Tcl_PosixError(interp)));
+ "can't set comm state: %s", Tcl_PosixError(interp)));
}
return TCL_ERROR;
}