apply: make some parsing functions static again

Some parsing functions that were used in both "apply.c" and
"builtin/apply.c" are now only used in the former, so they
can be made static to "apply.c".

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Christian Couder
2016-09-04 22:18:23 +02:00
committed by Junio C Hamano
parent 13b5af22f3
commit 9123d5ddfe
2 changed files with 3 additions and 8 deletions

View File

@ -27,7 +27,7 @@ static void git_apply_config(void)
git_config(git_default_config, NULL);
}
int parse_whitespace_option(struct apply_state *state, const char *option)
static int parse_whitespace_option(struct apply_state *state, const char *option)
{
if (!option) {
state->ws_error_action = warn_on_ws_error;
@ -57,8 +57,8 @@ int parse_whitespace_option(struct apply_state *state, const char *option)
return error(_("unrecognized whitespace option '%s'"), option);
}
int parse_ignorewhitespace_option(struct apply_state *state,
const char *option)
static int parse_ignorewhitespace_option(struct apply_state *state,
const char *option)
{
if (!option || !strcmp(option, "no") ||
!strcmp(option, "false") || !strcmp(option, "never") ||