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