aboutsummaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorNanako Shiraishi <nanako3@lavabit.com>2008-09-25 18:41:00 +0900
committerShawn O. Pearce <spearce@spearce.org>2008-09-25 08:00:28 -0700
commit697d7f5dad805fd6d9d57e07d5019f97fa9a0d4b (patch)
tree82da913f88c7f41092ae05e74e4ec0228e337595 /remote.c
parent3b9b1163c0a316c50715c6bd7c731b4703f89f55 (diff)
downloadgit-697d7f5dad805fd6d9d57e07d5019f97fa9a0d4b.tar.gz
git-697d7f5dad805fd6d9d57e07d5019f97fa9a0d4b.tar.xz
remote.c: make free_ref(), parse_push_refspec() and free_refspecs() static.
These functions are not used by any other file. Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote.c b/remote.c
index 3f3c78965..c45d96e98 100644
--- a/remote.c
+++ b/remote.c
@@ -455,7 +455,7 @@ static int verify_refname(char *name, int is_glob)
* and dst pointers are always freeable pointers as well
* as the refspec pointer itself.
*/
-void free_refspecs(struct refspec *refspec, int nr_refspec)
+static void free_refspecs(struct refspec *refspec, int nr_refspec)
{
int i;
@@ -613,7 +613,7 @@ struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec)
return parse_refspec_internal(nr_refspec, refspec, 1, 0);
}
-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
+static struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
{
return parse_refspec_internal(nr_refspec, refspec, 0, 0);
}
@@ -783,7 +783,7 @@ struct ref *copy_ref_list(const struct ref *ref)
return ret;
}
-void free_ref(struct ref *ref)
+static void free_ref(struct ref *ref)
{
if (!ref)
return;