25 Nov
2024
25 Nov
'24
9:46 a.m.
eric pouech (@epo) commented about programs/timeout/main.c:
+ return 1; + } + } + + if (wait_time_valid == 0) + { + timeout_error_wprintf(STRING_BAD_COMMAND_LINE); + return 1; + } + + if (nobreak) + { + SetConsoleCtrlHandler(ctrl_c_handler, TRUE); + } + + for (int i = 0; (wait_time < 0) || (i < wait_time); i++) don't declare loop variables inside the loop, that's not supported by every compiler setup
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6869#note_88793