Use EXIT_SUCCESS/FAILURE instead of 0/1

This commit is contained in:
Orestis Floros
2020-01-16 09:21:27 +01:00
parent f7aee6b908
commit 0ed94fc788
10 changed files with 12 additions and 12 deletions

View File

@ -106,7 +106,7 @@ static void push_string(const char *identifier, char *str) {
fprintf(stderr, "BUG: commands_parser stack full. This means either a bug "
"in the code, or a new command which contains more than "
"10 identified tokens.\n");
exit(1);
exit(EXIT_FAILURE);
}
// TODO move to a common util
@ -128,7 +128,7 @@ static void push_long(const char *identifier, long num) {
fprintf(stderr, "BUG: commands_parser stack full. This means either a bug "
"in the code, or a new command which contains more than "
"10 identified tokens.\n");
exit(1);
exit(EXIT_FAILURE);
}
// TODO move to a common util