From 2a80a389e1df5341ada9a9f66ce0ad9844ef65f7 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 14 Oct 2013 09:02:27 +0200 Subject: Fix upstream detection --- src/config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index bc85603..6ae219a 100644 --- a/src/config.c +++ b/src/config.c @@ -252,9 +252,8 @@ err: } -int config_parse_interface(struct blob_attr *b, const char *name) +int config_parse_interface(struct blob_attr *b, const char *name, bool overwrite) { - bool overwrite = !!name; struct blob_attr *tb[IFACE_ATTR_MAX], *c; blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blob_data(b), blob_len(b)); @@ -457,7 +456,7 @@ static int set_interface(struct uci_section *s) { blob_buf_init(&b, 0); uci_to_blob(&b, s, &interface_attr_list); - return config_parse_interface(b.head, s->e.name); + return config_parse_interface(b.head, s->e.name, true); } -- cgit v1.2.3