mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Factor parse_set_common out of parse_set
This commit is contained in:
parent
8a8be53452
commit
7f042a49d7
@ -87,7 +87,7 @@ 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,
|
||||
parse_set_common(struct option *opt_tree, unsigned char **file, int *line,
|
||||
struct string *mirror, int is_system_conf)
|
||||
{
|
||||
unsigned char *orig_pos = *file;
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user