aboutsummaryrefslogtreecommitdiffstats
path: root/http-fetch.c
diff options
context:
space:
mode:
authorPeter Hagervall <hager@cs.umu.se>2005-09-28 14:04:54 +0200
committerJunio C Hamano <junkio@cox.net>2005-09-28 16:38:52 -0700
commita7928f8ec7fb3c368e6086ab48f41e33a22e1b94 (patch)
tree0b06ca974f9c5a5a3640f3b4b506e8117b7b5daf /http-fetch.c
parent5acb6de13d7af33abcfcbdc885ec365e6a51c486 (diff)
downloadgit-a7928f8ec7fb3c368e6086ab48f41e33a22e1b94.tar.gz
[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 'http-fetch.c')
-rw-r--r--http-fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/http-fetch.c b/http-fetch.c
index 7fc363f8ea..33f3949252 100644
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -27,7 +27,7 @@ struct alt_base
struct alt_base *next;
};
-struct alt_base *alt = NULL;
+static struct alt_base *alt = NULL;
static SHA_CTX c;
static z_stream stream;
@@ -354,7 +354,7 @@ static int fetch_pack(struct alt_base *repo, unsigned char *sha1)
return 0;
}
-int fetch_object(struct alt_base *repo, unsigned char *sha1)
+static int fetch_object(struct alt_base *repo, unsigned char *sha1)
{
char *hex = sha1_to_hex(sha1);
char *filename = sha1_file_name(sha1);