From e72ac2c61f4e433198f02c21ef50a2bc0a38b58f Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 6 Apr 2013 00:48:42 +0900 Subject: use EXIT_SUCCESS and EXIT_FAILURE for exit status; close #1142 --- tools/mrbc/mrbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/mrbc') diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c index b8c1cf286..a494a2cde 100644 --- a/tools/mrbc/mrbc.c +++ b/tools/mrbc/mrbc.c @@ -115,7 +115,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args) case '-': if (strcmp((*argv) + 2, "version") == 0) { mrb_show_version(mrb); - exit(0); + exit(EXIT_SUCCESS); } else if (strcmp((*argv) + 2, "verbose") == 0) { args->verbose = 1; @@ -123,7 +123,7 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args) } else if (strcmp((*argv) + 2, "copyright") == 0) { mrb_show_copyright(mrb); - exit(0); + exit(EXIT_SUCCESS); } result = -3; goto exit; -- cgit v1.2.3