summaryrefslogtreecommitdiffstats
path: root/generic/tclTest.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 15:26:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-04-10 15:26:21 (GMT)
commite6e32f5b516a160dea856d371497b620cd6b8746 (patch)
tree01f7adcaadf8875893ea59d7b147f3d465b7886a /generic/tclTest.c
parent4ccfe4eda6b1f0c794b7a4a3e241c0e201232501 (diff)
parent2ffd22efd1279d41b6a871510d564e8a5151a948 (diff)
downloadtcl-e6e32f5b516a160dea856d371497b620cd6b8746.zip
tcl-e6e32f5b516a160dea856d371497b620cd6b8746.tar.gz
tcl-e6e32f5b516a160dea856d371497b620cd6b8746.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r--generic/tclTest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c
index 10c17c7..d8fbb00 100644
--- a/generic/tclTest.c
+++ b/generic/tclTest.c
@@ -7430,7 +7430,7 @@ SimpleOpenFileChannel(
Tcl_Obj *tempPtr;
Tcl_Channel chan;
- if ((mode != 0) && !(mode & O_RDONLY)) {
+ if ((mode & O_ACCMODE) != O_RDONLY) {
Tcl_AppendResult(interp, "read-only", (char *)NULL);
return NULL;
}
@@ -8317,7 +8317,7 @@ TestparseargsCmd(
const Tcl_ArgvInfo argTable[] = {
{TCL_ARGV_CONSTANT, "-bool", INT2PTR(1), &foo, "booltest", NULL},
{TCL_ARGV_STRING, "-colormode" , NULL, &color, "color mode", NULL},
- {TCL_ARGV_GENFUNC, "-media", ParseMedia, &media, "media page size", NULL},
+ {TCL_ARGV_GENFUNC, "-media", (void *)ParseMedia, &media, "media page size", NULL},
TCL_ARGV_AUTO_REST, TCL_ARGV_AUTO_HELP, TCL_ARGV_TABLE_END
};