From: Jonas Fonseca Date: Tue, 16 May 2006 16:25:28 +0000 (+0200) Subject: Make the last variables static X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3a91b75ea0be7e8771ad076f63f011cea0a6cc05;p=tig.git Make the last variables static --- diff --git a/tig.c b/tig.c index ca2c6e5..c1e5ea4 100644 --- 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)