MAINT: Use EXIT_SUCCESS for the runner result

This commit is contained in:
Rohit Goswami 2024-07-29 02:57:24 +00:00 committed by Mateusz Sokół
parent 5a4557ce1e
commit b85a8e8bc9
1 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[]) {
if (argc != 2 && argc != 3) {
@ -16,7 +15,7 @@ int main(int argc, char *argv[]) {
}
int result = system(command);
if (result != 0) {
if (result != EXIT_SUCCESS) {
fprintf(stderr, "Error: Command '%s' failed with return code %d.\n", command, result);
return EXIT_FAILURE;
}