serve: mark has_capability() as static
The has_capability() function introduced ined10cb952d
(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" in554544276a
(*.[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>
This commit is contained in:

committed by
Junio C Hamano

parent
e5a14ddd2d
commit
eacf36a4d1
2
serve.c
2
serve.c
@ -156,7 +156,7 @@ static int is_command(const char *key, struct protocol_capability **command)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int has_capability(const struct strvec *keys, const char *capability,
|
static int has_capability(const struct strvec *keys, const char *capability,
|
||||||
const char **value)
|
const char **value)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
4
serve.h
4
serve.h
@ -1,10 +1,6 @@
|
|||||||
#ifndef SERVE_H
|
#ifndef SERVE_H
|
||||||
#define SERVE_H
|
#define SERVE_H
|
||||||
|
|
||||||
struct strvec;
|
|
||||||
int has_capability(const struct strvec *keys, const char *capability,
|
|
||||||
const char **value);
|
|
||||||
|
|
||||||
struct serve_options {
|
struct serve_options {
|
||||||
unsigned advertise_capabilities;
|
unsigned advertise_capabilities;
|
||||||
unsigned stateless_rpc;
|
unsigned stateless_rpc;
|
||||||
|
Reference in New Issue
Block a user