Skip to content

Commit

Permalink
connect.c: make parse_feature_value() static
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Junio C Hamano committed Sep 18, 2013
1 parent 5e7dcad commit 5d54cff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,6 @@ extern struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
extern int server_supports(const char *feature);
extern int parse_feature_request(const char *features, const char *feature);
extern const char *server_feature_value(const char *feature, int *len_ret);
extern const char *parse_feature_value(const char *feature_list, const char *feature, int *len_ret);

extern struct packed_git *parse_pack_index(unsigned char *sha1, const char *idx_path);

Expand Down
3 changes: 2 additions & 1 deletion connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "url.h"

static char *server_capabilities;
static const char *parse_feature_value(const char *, const char *, int *);

static int check_ref(const char *name, int len, unsigned int flags)
{
Expand Down Expand Up @@ -116,7 +117,7 @@ struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
return list;
}

const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp)
static const char *parse_feature_value(const char *feature_list, const char *feature, int *lenp)
{
int len;

Expand Down

0 comments on commit 5d54cff

Please sign in to comment.