summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index afd5de1..73b61ab 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -781,7 +781,7 @@ FileGetHandleProc(
return TCL_ERROR;
}
- *handlePtr = (void *) infoPtr->handle;
+ *handlePtr = (void *)infoPtr->handle;
return TCL_OK;
}
@@ -826,7 +826,7 @@ StoreElementInDict(
* duplicate keys.
*/
- Tcl_Obj *nameObj = Tcl_NewStringObj(name, -1);
+ Tcl_Obj *nameObj = Tcl_NewStringObj(name, TCL_INDEX_NONE);
Tcl_DictObjPut(NULL, dictObj, nameObj, valueObj);
}
@@ -910,9 +910,9 @@ StatOpenFile(
* Anything else and we definitely couldn't have got here anyway.
*/
if (attr & FILE_ATTRIBUTE_DIRECTORY) {
- STORE_ELEM("type", Tcl_NewStringObj("directory", -1));
+ STORE_ELEM("type", Tcl_NewStringObj("directory", TCL_INDEX_NONE));
} else {
- STORE_ELEM("type", Tcl_NewStringObj("file", -1));
+ STORE_ELEM("type", Tcl_NewStringObj("file", TCL_INDEX_NONE));
}
#undef STORE_ELEM
@@ -1194,7 +1194,7 @@ TclpOpenFileChannel(
"couldn't open \"%s\": bad file type",
TclGetString(pathPtr)));
Tcl_SetErrorCode(interp, "TCL", "VALUE", "CHANNEL", "BAD_TYPE",
- (void *)NULL);
+ (char *)NULL);
break;
}