diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-08-05 03:25:34 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-05 08:59:36 -0700 |
commit | eacf36a4d1d6e83418c02f61e0c418d049000240 (patch) | |
tree | cb7ed11f3135db146668e911e9512766120a4bdf /serve.c | |
parent | The eighth batch (diff) | |
download | tgif-eacf36a4d1d6e83418c02f61e0c418d049000240.tar.xz |
serve: mark has_capability() as static
The has_capability() function introduced in ed10cb952d3 (serve:
introduce git-serve, 2018-03-15) has never been used anywhere except
serve.c, so let's mark it as static.
It was later changed from "extern" in 554544276a6 (*.[ch]: remove
extern from function declarations using spatch, 2019-04-29), but we
could have simply marked it as "static" instead.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'serve.c')
-rw-r--r-- | serve.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -156,8 +156,8 @@ static int is_command(const char *key, struct protocol_capability **command) return 0; } -int has_capability(const struct strvec *keys, const char *capability, - const char **value) +static int has_capability(const struct strvec *keys, const char *capability, + const char **value) { int i; for (i = 0; i < keys->nr; i++) { |