Code

Make the last variables static
authorJonas Fonseca <fonseca@diku.dk>
Tue, 16 May 2006 16:25:28 +0000 (18:25 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Tue, 16 May 2006 16:25:28 +0000 (18:25 +0200)
tig.c

diff --git a/tig.c b/tig.c
index ca2c6e5f91a93305c534ea98f3c67560bdfa20ff..c1e5ea4a379b986d2788fc049a4e7aeb4c344f57 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -666,8 +666,8 @@ struct view {
 static struct view_ops pager_ops;
 static struct view_ops main_ops;
 
-char ref_head[SIZEOF_REF]      = "HEAD";
-char ref_commit[SIZEOF_REF]    = "HEAD";
+static char ref_head[SIZEOF_REF]       = "HEAD";
+static char ref_commit[SIZEOF_REF]     = "HEAD";
 
 #define VIEW_STR(name, cmd, env, ref, objsize, ops) \
        { name, cmd, #env, ref, objsize, ops }
@@ -1693,7 +1693,7 @@ struct keymap {
        int request;
 };
 
-struct keymap keymap[] = {
+static struct keymap keymap[] = {
        /**
         * View switching
         * ~~~~~~~~~~~~~~
@@ -1919,7 +1919,7 @@ init_display(void)
  */
 
 static struct ref *refs;
-size_t refs_size;
+static size_t refs_size;
 
 static struct ref **
 get_refs(char *id)