]> git.deb.at Git - pkg/abook.git/commitdiff
- declare more variables as static
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Tue, 2 Aug 2005 08:24:38 +0000 (08:24 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Tue, 2 Aug 2005 08:24:38 +0000 (08:24 +0000)
database.c
list.c
ui.c

index e8a4fa390f168185920dfaac61a205e209108a56..aecdf8271982151bbd926774d7a6e47e78afe01e 100644 (file)
 #      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 b208054d7cdfa71991a570d914f7c5273784fb3a..da6635e5a26d8da58784cff1bb153d32fe8254ca 100644 (file)
--- 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 3098b553435a4dd7ab1e14001b763a152080d1fb..27aa91f12f35edc1cc828c92188b1a83446d312b 100644 (file)
--- 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