summaryrefslogtreecommitdiff
path: root/update-ref.c
diff options
context:
space:
mode:
authorPeter Hagervall <hager@cs.umu.se>2005-09-28 12:04:54 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-28 23:38:52 (GMT)
commita7928f8ec7fb3c368e6086ab48f41e33a22e1b94 (patch)
tree0b06ca974f9c5a5a3640f3b4b506e8117b7b5daf /update-ref.c
parent5acb6de13d7af33abcfcbdc885ec365e6a51c486 (diff)
downloadgit-a7928f8ec7fb3c368e6086ab48f41e33a22e1b94.zip
git-a7928f8ec7fb3c368e6086ab48f41e33a22e1b94.tar.gz
git-a7928f8ec7fb3c368e6086ab48f41e33a22e1b94.tar.bz2
[PATCH] Make some needlessly global stuff static
Insert 'static' where appropriate. Signed-off-by: Peter Hagervall <hager@cs.umu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'update-ref.c')
-rw-r--r--update-ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/update-ref.c b/update-ref.c
index 01496f6..1863b82 100644
--- a/update-ref.c
+++ b/update-ref.c
@@ -6,7 +6,7 @@ static const char git_update_ref_usage[] = "git-update-ref <refname> <value> [<o
#define MAXDEPTH 5
-const char *resolve_ref(const char *path, unsigned char *sha1)
+static const char *resolve_ref(const char *path, unsigned char *sha1)
{
int depth = MAXDEPTH, len;
char buffer[256];