diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-29 19:59:03 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-08-29 19:59:03 +0100 |
commit | aa4b2c6e0ccc36755c3b110dc68397ac7a94e5d3 (patch) | |
tree | 4fea25ed38d2d4e4ed7a467dcfa1a4ca1ed52494 /src/rspamadm/control.c | |
parent | e77e2d42f4ee816c2eb859295e8ee8608f0bff93 (diff) | |
download | rspamd-aa4b2c6e0ccc36755c3b110dc68397ac7a94e5d3.tar.gz rspamd-aa4b2c6e0ccc36755c3b110dc68397ac7a94e5d3.zip |
[Minor] Fix exit codes usage to POSIX portable EXIT_FAILURE
Diffstat (limited to 'src/rspamadm/control.c')
-rw-r--r-- | src/rspamadm/control.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rspamadm/control.c b/src/rspamadm/control.c index 7bf2a3145..4a660492e 100644 --- a/src/rspamadm/control.c +++ b/src/rspamadm/control.c @@ -186,14 +186,14 @@ rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd) rspamd_fprintf (stderr, "option parsing failed: %s\n", error->message); g_error_free (error); g_option_context_free (context); - exit (1); + exit (EXIT_FAILURE); } g_option_context_free (context); if (argc <= 1) { rspamd_fprintf (stderr, "command required\n"); - exit (1); + exit (EXIT_FAILURE); } cmd = argv[1]; @@ -220,13 +220,13 @@ rspamadm_control (gint argc, gchar **argv, const struct rspamadm_command *_cmd) } else { rspamd_fprintf (stderr, "unknown command: %s\n", cmd); - exit (1); + exit (EXIT_FAILURE); } if (!rspamd_parse_inet_address (&addr, control_path, strlen (control_path), RSPAMD_INET_ADDRESS_PARSE_DEFAULT)) { rspamd_fprintf (stderr, "bad control path: %s\n", control_path); - exit (1); + exit (EXIT_FAILURE); } |