diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-04-10 15:26:21 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-04-10 15:26:21 (GMT) |
commit | e6e32f5b516a160dea856d371497b620cd6b8746 (patch) | |
tree | 01f7adcaadf8875893ea59d7b147f3d465b7886a /generic/tclTest.c | |
parent | 4ccfe4eda6b1f0c794b7a4a3e241c0e201232501 (diff) | |
parent | 2ffd22efd1279d41b6a871510d564e8a5151a948 (diff) | |
download | tcl-e6e32f5b516a160dea856d371497b620cd6b8746.zip tcl-e6e32f5b516a160dea856d371497b620cd6b8746.tar.gz tcl-e6e32f5b516a160dea856d371497b620cd6b8746.tar.bz2 |
Merge 8.7
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 4 |
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 }; |