From: Peter Hagervall <hager@cs.umu.se>
To: junkio@cox.net
Cc: git@vger.kernel.org
Subject: [PATCH] Make some needlessly global stuff static
Date: Wed, 28 Sep 2005 14:04:54 +0200 [thread overview]
Message-ID: <20050928120454.GB3906@peppar.cs.umu.se> (raw)
Insert 'static' where appropriate.
Signed-off-by: Peter Hagervall <hager@cs.umu.se>
---
fsck-objects.c | 4 ++--
http-fetch.c | 4 ++--
update-ref.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/fsck-objects.c b/fsck-objects.c
--- a/fsck-objects.c
+++ b/fsck-objects.c
@@ -30,7 +30,7 @@ static void objreport(struct object *obj
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 c
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
--- a/http-fetch.c
+++ b/http-fetch.c
@@ -26,7 +26,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;
@@ -345,7 +345,7 @@ static int fetch_pack(struct alt_base *r
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
--- a/update-ref.c
+++ b/update-ref.c
@@ -6,7 +6,7 @@ static const char git_update_ref_usage[]
#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];
reply other threads:[~2005-09-28 12:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050928120454.GB3906@peppar.cs.umu.se \
--to=hager@cs.umu.se \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox