From 3a91b75ea0be7e8771ad076f63f011cea0a6cc05 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 16 May 2006 18:25:28 +0200 Subject: [PATCH] Make the last variables static --- tig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) -- 2.30.2