From f2fa825a7af7caf058d77c22a7b6c342dd024535 Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 26 Dec 2025 14:36:10 +0100 Subject: [PATCH] Replace exit codes with macros because of https://aminet.net/package/dev/lang/lamb --- lamb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lamb.c b/lamb.c index 4b4171e..1e56b7c 100644 --- a/lamb.c +++ b/lamb.c @@ -100,7 +100,7 @@ bool cmd_run(Cmd *cmd) if (execvp(cmd->items[0], (char * const*) cmd->items) < 0) { fprintf(stderr, "ERROR: Could not exec child process for %s: %s", cmd->items[0], strerror(errno)); - exit(1); + exit(EXIT_FAILURE); } UNREACHABLE("cmd_run"); } @@ -192,7 +192,7 @@ int file_exists(const char *file_path) fprintf(stderr, "ERROR: Could not check if file %s exists: %s", file_path, strerror(errno)); return -1; } - return 1; + return EXIT_FAILURE; #endif } @@ -1395,7 +1395,7 @@ int main(int argc, char **argv) } quit: - return 0; + return EXIT_SUCCESS; } // Copyright 2025 Alexey Kutepov //