21 Nov
2024
21 Nov
'24
10:54 a.m.
eric pouech (@epo) commented about programs/timeout/main.c:
+ int wait_time_valid = 0; + int nobreak = 0; + + if (argc <= 1) + { + timeout_error_wprintf(STRING_BAD_COMMAND_LINE); + return 2; + } + + for (int i = 1; i < argc; i++) + { + if (wcscmp(argv[i], L"/?") == 0) + { + timeout_message(STRING_USAGE); + ret = 0; + goto done; you can simply return 0; and remove the label
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6869#note_88284