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>
Nanako Shiraishi committed
Sep 25, 2008 at 18:41 UTC
697d7f5dad805fd6d9d57e07d5019f97fa9a0d4b
2 files changed
+3
-5
remote.c
+3
-3
@@ -455,7 +455,7 @@ static int verify_refname(char *name, int is_glob)
455
* and dst pointers are always freeable pointers as well
456
* as the refspec pointer itself.
457
*/
458
-void free_refspecs(struct refspec *refspec, int nr_refspec)
458
+static void free_refspecs(struct refspec *refspec, int nr_refspec)
459
{
460
int i;
461
@@ -613,7 +613,7 @@ struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec)
613
return parse_refspec_internal(nr_refspec, refspec, 1, 0);
614
}
615
616
-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
616
+static struct refspec *parse_push_refspec(int nr_refspec, const char **refspec)
617
{
618
return parse_refspec_internal(nr_refspec, refspec, 0, 0);
619
}
@@ -783,7 +783,7 @@ struct ref *copy_ref_list(const struct ref *ref)
783
return ret;
784
}
785
786
-void free_ref(struct ref *ref)
786
+static void free_ref(struct ref *ref)
787
{
788
if (!ref)
789
return;
remote.h
-2
@@ -77,8 +77,6 @@ void ref_remove_duplicates(struct ref *ref_map);
77
78
int valid_fetch_refspec(const char *refspec);
79
struct refspec *parse_fetch_refspec(int nr_refspec, const char **refspec);
80
-struct refspec *parse_push_refspec(int nr_refspec, const char **refspec);
81
-void free_refspecs(struct refspec *refspec, int nr_refspec);
80
81
int match_refs(struct ref *src, struct ref *dst, struct ref ***dst_tail,
82
int nr_refspec, const char **refspec, int all);