X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fcli%2Fmain.c;h=0e41d1beb27d2dbd0f8cb6a590480191ac91eae9;hb=c91e69d435a938a1ee46b0881c50ee4816223bb0;hp=35f78d0bb4208b318f1788b6d07ebe3db2e87fa3;hpb=e417485aaf141647fcb32f45e38bbc5163abb2b4;p=emu8051.git diff --git a/src/cli/main.c b/src/cli/main.c index 35f78d0..0e41d1b 100644 --- a/src/cli/main.c +++ b/src/cli/main.c @@ -33,7 +33,7 @@ main(int argc, char **argv) if (options.filename != NULL) { rc = hexfile_load(options.filename); if (!rc) - exit(1); + exit(EXIT_FAILURE); } console_reset(); @@ -44,8 +44,8 @@ main(int argc, char **argv) } else { menu_display_usage(); console_show_registers(); - yyparse(); + (void) yyparse(); } - return 0; + exit(EXIT_SUCCESS); }