config: remove useless parameter.
The 'cfg' passed to parse_port_setting() is never used, so just remove it. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
5b36399e35
commit
7144aa9263
3
config.c
3
config.c
|
@ -162,7 +162,6 @@ static enum parser_result parse_pod_setting(const char *option,
|
||||||
|
|
||||||
static enum parser_result parse_port_setting(const char *option,
|
static enum parser_result parse_port_setting(const char *option,
|
||||||
const char *value,
|
const char *value,
|
||||||
struct config *cfg,
|
|
||||||
struct interface *iface)
|
struct interface *iface)
|
||||||
{
|
{
|
||||||
enum parser_result r;
|
enum parser_result r;
|
||||||
|
@ -677,7 +676,7 @@ int config_read(char *name, struct config *cfg)
|
||||||
if (current_section == GLOBAL_SECTION)
|
if (current_section == GLOBAL_SECTION)
|
||||||
parser_res = parse_global_setting(option, value, cfg);
|
parser_res = parse_global_setting(option, value, cfg);
|
||||||
else
|
else
|
||||||
parser_res = parse_port_setting(option, value, cfg, current_port);
|
parser_res = parse_port_setting(option, value, current_port);
|
||||||
|
|
||||||
switch (parser_res) {
|
switch (parser_res) {
|
||||||
case PARSED_OK:
|
case PARSED_OK:
|
||||||
|
|
Loading…
Reference in New Issue