From 7f042a49d7ae8d2d7b2528401e0f59b10c1afe5f Mon Sep 17 00:00:00 2001 From: Miciah Dashiel Butler Masters Date: Wed, 29 Aug 2007 13:30:40 +0000 Subject: [PATCH] Factor parse_set_common out of parse_set --- src/config/conf.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/config/conf.c b/src/config/conf.c index 3c03830c7..3ff8cf929 100644 --- a/src/config/conf.c +++ b/src/config/conf.c @@ -87,8 +87,8 @@ skip_white(unsigned char *start, int *line) * will only possibly set OPT_WATERMARK flag to the option (if enabled). */ static enum parse_error -parse_set(struct option *opt_tree, unsigned char **file, int *line, - struct string *mirror, int is_system_conf) +parse_set_common(struct option *opt_tree, unsigned char **file, int *line, + struct string *mirror, int is_system_conf) { unsigned char *orig_pos = *file; unsigned char *optname; @@ -158,6 +158,14 @@ parse_set(struct option *opt_tree, unsigned char **file, int *line, return ERROR_NONE; } +static enum parse_error +parse_set(struct option *opt_tree, unsigned char **file, int *line, + struct string *mirror, int is_system_conf) +{ + return parse_set_common(opt_tree, file, line, mirror, is_system_conf); +} + + static enum parse_error parse_unset(struct option *opt_tree, unsigned char **file, int *line, struct string *mirror, int is_system_conf)