* 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> 2002-11-17 Pavel Roskin <proski@gnu.org>
* screen.c (do_select): Mark panel as dirty. * screen.c (do_select): Mark panel as dirty.

View File

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