builtin/fetch.c: Fix a sparse warning
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Wed, 28 Aug 2013 18:56:17 +0000 (19:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 28 Aug 2013 23:55:23 +0000 (16:55 -0700)
Sparse issues an "'prepare_transport' was not declared. Should it
be static?" warning. In order to suppress the warning, since this
symbol only requires file scope, we simply add the static modifier
to it's declaration.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
index 57ab7e4d6346ad6966e450341047cb949b74da30..564705555b897bde0a1a2c3fad3c1f1b39903b53 100644 (file)
@@ -734,7 +734,7 @@ static void set_option(struct transport *transport, const char *name, const char
                        name, transport->url);
 }
 
-struct transport *prepare_transport(struct remote *remote)
+static struct transport *prepare_transport(struct remote *remote)
 {
        struct transport *transport;
        transport = transport_get(remote, NULL);