From: Pierre Habouzit Date: Wed, 23 Aug 2006 10:39:12 +0000 (+0200) Subject: missing 'static' keywords X-Git-Tag: v1.4.3-rc1~207 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b5bf7cd6b7dbcbef9181e21bfae21612c75738c4;p=git.git missing 'static' keywords builtin-tar-tree.c::git_tar_config() and http-push.c::add_one_object() are not used outside their own files. Signed-off-by: Pierre Habouzit Signed-off-by: Junio C Hamano --- diff --git a/builtin-tar-tree.c b/builtin-tar-tree.c index e0bcb0a1e..61a413590 100644 --- a/builtin-tar-tree.c +++ b/builtin-tar-tree.c @@ -275,7 +275,7 @@ static void traverse_tree(struct tree_desc *tree, struct strbuf *path) } } -int git_tar_config(const char *var, const char *value) +static int git_tar_config(const char *var, const char *value) { if (!strcmp(var, "tar.umask")) { if (!strcmp(value, "user")) { diff --git a/http-push.c b/http-push.c index 48497797f..7d12f6975 100644 --- a/http-push.c +++ b/http-push.c @@ -1700,7 +1700,7 @@ static int locking_available(void) return lock_flags; } -struct object_list **add_one_object(struct object *obj, struct object_list **p) +static struct object_list **add_one_object(struct object *obj, struct object_list **p) { struct object_list *entry = xmalloc(sizeof(struct object_list)); entry->item = obj;