remote.c: make clear_cas_option() static
authorJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2015 22:58:44 +0000 (14:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2015 19:05:48 +0000 (11:05 -0800)
No external callers exist.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote.c
remote.h
index 5b9c6931c1e66adb03f5d505aa8dd57169452eae..0b3939ce814d01b770b54c2c4e314a9f0d9bfb80 100644 (file)
--- a/remote.c
+++ b/remote.c
@@ -2156,7 +2156,7 @@ struct ref *get_stale_heads(struct refspec *refs, int ref_count, struct ref *fet
 /*
  * Compare-and-swap
  */
-void clear_cas_option(struct push_cas_option *cas)
+static void clear_cas_option(struct push_cas_option *cas)
 {
        int i;
 
index 8b62efd2adcb74c7e46d3f918a25658d6f6ce16f..31ccdcd14f4aaa89a78d110c6ccfc5f71faeb892 100644 (file)
--- a/remote.h
+++ b/remote.h
@@ -260,7 +260,6 @@ struct push_cas_option {
 
 extern int parseopt_push_cas_option(const struct option *, const char *arg, int unset);
 extern int parse_push_cas_option(struct push_cas_option *, const char *arg, int unset);
-extern void clear_cas_option(struct push_cas_option *);
 
 extern int is_empty_cas(const struct push_cas_option *);
 void apply_push_cas(struct push_cas_option *, struct remote *, struct ref *);