Skip to content

Commit b5bf7cd

Browse files
MadCoderJunio C Hamano
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c5fba16 commit b5bf7cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin-tar-tree.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static void traverse_tree(struct tree_desc *tree, struct strbuf *path)
275275
}
276276
}
277277

278-
int git_tar_config(const char *var, const char *value)
278+
static int git_tar_config(const char *var, const char *value)
279279
{
280280
if (!strcmp(var, "tar.umask")) {
281281
if (!strcmp(value, "user")) {

http-push.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1700,7 +1700,7 @@ static int locking_available(void)
17001700
return lock_flags;
17011701
}
17021702

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)
17041704
{
17051705
struct object_list *entry = xmalloc(sizeof(struct object_list));
17061706
entry->item = obj;

0 commit comments

Comments
 (0)