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 <madcoder@debian.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Pierre Habouzit committed
Aug 23, 2006 at 12:39 UTC
b5bf7cd6b7dbcbef9181e21bfae21612c75738c4
2 files changed
+2
-2
builtin-tar-tree.c
+1
-1
@@ -275,7 +275,7 @@ static void traverse_tree(struct tree_desc *tree, struct strbuf *path)
275
}
276
}
277
278
-int git_tar_config(const char *var, const char *value)
278
+static int git_tar_config(const char *var, const char *value)
279
{
280
if (!strcmp(var, "tar.umask")) {
281
if (!strcmp(value, "user")) {
http-push.c
+1
-1
@@ -1700,7 +1700,7 @@ static int locking_available(void)
1700
return lock_flags;
1701
}
1702
1703
-struct object_list **add_one_object(struct object *obj, struct object_list **p)
1703
+static struct object_list **add_one_object(struct object *obj, struct object_list **p)
1704
{
1705
struct object_list *entry = xmalloc(sizeof(struct object_list));
1706
entry->item = obj;