From: Jaakko Heinonen Date: Tue, 2 Aug 2005 08:24:38 +0000 (+0000) Subject: - declare more variables as static X-Git-Tag: upstream/0.6.1~2^2~186 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=392a8ae6d501ab5c20b8bb8176cac4aa9dbf99f3;p=pkg%2Fabook.git - declare more variables as static --- diff --git a/database.c b/database.c index e8a4fa3..aecdf82 100644 --- a/database.c +++ b/database.c @@ -24,16 +24,13 @@ # include "config.h" #endif -static void free_item(int i); - - list_item *database = NULL; int items = 0; #define INITIAL_LIST_CAPACITY 30 -int list_capacity = 0; +static int list_capacity = 0; extern int first_list_item; extern int curitem; diff --git a/list.c b/list.c index b208054..da6635e 100644 --- a/list.c +++ b/list.c @@ -32,7 +32,7 @@ extern int items; extern list_item *database; extern struct abook_field abook_fields[]; -WINDOW *list = NULL; +static WINDOW *list = NULL; static int init_extra_field(enum str_opts option) diff --git a/ui.c b/ui.c index 3098b55..27aa91f 100644 --- a/ui.c +++ b/ui.c @@ -51,12 +51,12 @@ extern bool alternative_datafile; * internal variables */ -bool ui_initialized = FALSE; +static bool ui_initialized = FALSE; -bool should_resize = FALSE; -bool can_resize = FALSE; +static bool should_resize = FALSE; +static bool can_resize = FALSE; -WINDOW *top = NULL, *bottom = NULL; +static WINDOW *top = NULL, *bottom = NULL; static void