mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
e42902a619
Avoid passing the ExpBlockModeProc function pointer through an object pointer type and instead move it to the proper place in the struct. Setting the channel version of expChannelType to 2 in the version field tells tcl's Tcl_ChannelBlockModeProc() to use the function pointer directly, and avoids undefined behavior. Using TCL_CHANNEL_VERSION_2 is the conservative choice, although version 5 would also work. discussed with stu tested/ok jca