* main.c: Eliminate finish_program variable - mc can now exit

immediately.
This commit is contained in:
Pavel Roskin 2002-11-20 15:54:33 +00:00
parent 4d6c31505b
commit c0cd0ff9ec
2 changed files with 9 additions and 10 deletions

View File

@ -1,3 +1,8 @@
2002-11-20 Pavel Roskin <proski@gnu.org>
* main.c: Eliminate finish_program variable - mc can now exit
immediately.
2002-11-17 Pavel Roskin <proski@gnu.org>
* screen.c (do_select): Mark panel as dirty.

View File

@ -298,9 +298,6 @@ char *mc_home;
char cmd_buf[512];
/* Used during argument processing */
int finish_program = 0;
WPanel *
get_current_panel (void)
{
@ -2148,7 +2145,7 @@ process_args (poptContext ctx, int c, const char *option_arg)
switch (c) {
case 'V':
version (1);
finish_program = 1;
exit (0);
break;
case 'c':
@ -2160,7 +2157,7 @@ process_args (poptContext ctx, int c, const char *option_arg)
case 'f':
printf ("%s\n", mc_home);
finish_program = 1;
exit (0);
break;
#ifdef USE_NETCODE
@ -2190,12 +2187,12 @@ process_args (poptContext ctx, int c, const char *option_arg)
case 'H':
print_color_usage ();
finish_program = 1;
exit (0);
break;
case 'h':
print_mc_usage (ctx, stdout);
finish_program = 1;
exit (0);
}
}
@ -2294,9 +2291,6 @@ handle_args (int argc, char *argv[])
exit (1);
}
if (finish_program)
exit (0);
tmp = poptGetArg (ctx);
/*