use EXIT_SUCCESS and EXIT_FAILURE for exit status; close #1142

This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-04-06 00:48:42 +09:00
parent a20384ce74
commit e72ac2c61f
5 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ append_cmdline:
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 @@ append_cmdline:
}
else if (strcmp((*argv) + 2, "copyright") == 0) {
mrb_show_copyright(mrb);
exit(0);
exit(EXIT_SUCCESS);
}
else return -3;
default: