Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2013-08-28 22:56:17 +0400
committerJunio C Hamano <gitster@pobox.com>2013-08-29 03:55:23 +0400
commit0f73f8bd7974fcf7f9e4608875323c96c6159829 (patch)
tree9a23b1b73e8e0b47686ea6bb927d4201d5ddb8d5 /builtin/fetch.c
parentb26ed4305f9e7043133e52990897afbbf1808d6d (diff)
builtin/fetch.c: Fix a sparse warning
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>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index 57ab7e4d63..564705555b 100644
--- a/builtin/fetch.c
+++ b/builtin/fetch.c
@@ -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);