From a1ce20517c2e38407055c80d44e1b958fd4968c3 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Mon, 28 Jul 2003 16:11:44 +0000 Subject: [PATCH] * main.c: Make more variables static. --- src/ChangeLog | 4 ++++ src/main.c | 11 +++-------- src/main.h | 2 -- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 6696eaa28..ef61d2f1e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-07-28 Andrew V. Samoilov + + * main.c: Make more variables static. + 2003-07-23 Pavel Roskin * key.c (xterm_key_defines): Add more sequences for xterm-179 by diff --git a/src/main.c b/src/main.c index a5e191a6b..f57374651 100644 --- a/src/main.c +++ b/src/main.c @@ -224,11 +224,6 @@ Dlg_head *midnight_dlg; /* We need to paint it after CONSOLE_RESTORE, see: load_prompt */ int update_prompt = 0; -#if 0 -/* The name which was used to invoke mc */ -char *program_name; -#endif - /* The home directory */ char *home_dir; @@ -238,7 +233,7 @@ char *other_dir = 0; /* Only used at program boot */ int boot_current_is_left = 1; -char *this_dir = 0; +static char *this_dir = 0; /* If this is true, then when browsing the tree the other window will * automatically reload it's directory with the contents of the currently @@ -259,10 +254,10 @@ int force_colors = 0; char *command_line_colors; /* File name to view if argument was supplied */ -char *view_one_file = 0; +static char *view_one_file = 0; /* File name to edit if argument was supplied */ -char *edit_one_file = 0; +static char *edit_one_file = 0; /* Line to start the editor on */ static int edit_one_file_start_line = 0; diff --git a/src/main.h b/src/main.h index 85e8a90ef..28f383bdc 100644 --- a/src/main.h +++ b/src/main.h @@ -32,8 +32,6 @@ extern int pause_after_run; extern int auto_save_setup; extern int use_internal_view; extern int use_internal_edit; -extern char *view_one_file; -extern char *edit_one_file; extern int fast_reload_w; extern int clear_before_exec; extern int mou_auto_repeat;