missing 'static' keywords
authorPierre Habouzit <madcoder@debian.org>
Wed, 23 Aug 2006 10:39:12 +0000 (12:39 +0200)
committerJunio C Hamano <junkio@cox.net>
Thu, 24 Aug 2006 01:47:38 +0000 (18:47 -0700)
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 <madcoder@debian.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-tar-tree.c
http-push.c

index e0bcb0a1e146c3f85fa98463a0d4bb5913a3f2b2..61a413590d74d0fb167d715aa754df1a8794c085 100644 (file)
@@ -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")) {
index 48497797f1650a2ed3f24010a85123993b14d8aa..7d12f6975cbb389a59b464138786e46326c6b9d4 100644 (file)
@@ -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;