From aa4b2c6e0ccc36755c3b110dc68397ac7a94e5d3 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 29 Aug 2021 19:59:03 +0100 Subject: [Minor] Fix exit codes usage to POSIX portable EXIT_FAILURE --- utils/rspamd_http_bench.c | 2 +- utils/rspamd_http_server.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'utils') diff --git a/utils/rspamd_http_bench.c b/utils/rspamd_http_bench.c index 14d2db4f9..030b0b4b6 100644 --- a/utils/rspamd_http_bench.c +++ b/utils/rspamd_http_bench.c @@ -335,7 +335,7 @@ main (int argc, char **argv) if (!g_option_context_parse (context, &argc, &argv, &error)) { rspamd_fprintf (stderr, "option parsing failed: %s\n", error->message); g_error_free (error); - exit (1); + exit (EXIT_FAILURE); } rspamd_parse_inet_address (&addr, host, 0); diff --git a/utils/rspamd_http_server.c b/utils/rspamd_http_server.c index a1a91f599..f4b8e3b5f 100644 --- a/utils/rspamd_http_server.c +++ b/utils/rspamd_http_server.c @@ -264,7 +264,7 @@ main (int argc, gchar **argv) if (!g_option_context_parse (context, &argc, &argv, &error)) { rspamd_fprintf (stderr, "option parsing failed: %s\n", error->message); g_error_free (error); - exit (1); + exit (EXIT_FAILURE); } maps = g_hash_table_new (g_int_hash, g_int_equal); -- cgit v1.2.3