summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5acb6de)
raw | patch | inline | side by side (parent: 5acb6de)
author | Peter Hagervall <hager@cs.umu.se> | |
Wed, 28 Sep 2005 12:04:54 +0000 (14:04 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 28 Sep 2005 23:38:52 +0000 (16:38 -0700) |
Insert 'static' where appropriate.
Signed-off-by: Peter Hagervall <hager@cs.umu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Peter Hagervall <hager@cs.umu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
fsck-objects.c | patch | blob | history | |
http-fetch.c | patch | blob | history | |
update-ref.c | patch | blob | history |
diff --git a/fsck-objects.c b/fsck-objects.c
index b82685fd718b0269bee4153badd391e9218a2b29..247edf052900e22c958595f34b7bce886c369377 100644 (file)
--- a/fsck-objects.c
+++ b/fsck-objects.c
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);
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 7fc363f8ea7ca622330eb17260bf76f977875d03..33f3949252f2dbf0b724b6cfebde236f7d78d728 100644 (file)
--- a/http-fetch.c
+++ b/http-fetch.c
struct alt_base *next;
};
-struct alt_base *alt = NULL;
+static struct alt_base *alt = NULL;
static SHA_CTX c;
static z_stream stream;
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 01496f6a92f68d25dd160ec7c42004d7e395fe5b..1863b823240790c450e29c1c82041972713d716b 100644 (file)
--- a/update-ref.c
+++ b/update-ref.c
#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];