From: Peter Hagervall Date: Wed, 28 Sep 2005 12:04:54 +0000 (+0200) Subject: [PATCH] Make some needlessly global stuff static X-Git-Tag: v0.99.8~32 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=a7928f8ec7fb3c368e6086ab48f41e33a22e1b94;p=git.git [PATCH] Make some needlessly global stuff static Insert 'static' where appropriate. Signed-off-by: Peter Hagervall Signed-off-by: Junio C Hamano --- diff --git a/fsck-objects.c b/fsck-objects.c index b82685fd..247edf05 100644 --- a/fsck-objects.c +++ b/fsck-objects.c @@ -30,7 +30,7 @@ static void objreport(struct object *obj, const char *severity, fputs("\n", stderr); } -int objerror(struct object *obj, const char *err, ...) +static int objerror(struct object *obj, const char *err, ...) { va_list params; va_start(params, err); @@ -39,7 +39,7 @@ int objerror(struct object *obj, const char *err, ...) return -1; } -int objwarning(struct object *obj, const char *err, ...) +static int objwarning(struct object *obj, const char *err, ...) { va_list params; va_start(params, err); diff --git a/http-fetch.c b/http-fetch.c index 7fc363f8..33f39492 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); diff --git a/update-ref.c b/update-ref.c index 01496f6a..1863b823 100644 --- a/update-ref.c +++ b/update-ref.c @@ -6,7 +6,7 @@ static const char git_update_ref_usage[] = "git-update-ref [