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>
This commit is contained in:
parent
c5fba16c50
commit
b5bf7cd6b7
@ -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(var, "tar.umask")) {
|
||||||
if (!strcmp(value, "user")) {
|
if (!strcmp(value, "user")) {
|
||||||
|
@ -1700,7 +1700,7 @@ static int locking_available(void)
|
|||||||
return lock_flags;
|
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));
|
struct object_list *entry = xmalloc(sizeof(struct object_list));
|
||||||
entry->item = obj;
|
entry->item = obj;
|
||||||
|
Loading…
Reference in New Issue
Block a user