summaryrefslogtreecommitdiffhomepage
path: root/src/config.c
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-15 16:32:35 +0200
committerSteven Barth <steven@midlink.org>2013-10-15 16:32:35 +0200
commit74cd69a0fe942e03429582f06969d26d478e54aa (patch)
treeb2e7408760e733e90f6e0181561ea16fd1c71cfc /src/config.c
parent57e0e45970b8c1cf0d36ab07efd4c19d92529e85 (diff)
Fix config retrieval from netifd
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.c b/src/config.c
index baa8579..e33c855 100644
--- a/src/config.c
+++ b/src/config.c
@@ -254,10 +254,10 @@ err:
}
-int config_parse_interface(struct blob_attr *b, const char *name, bool overwrite)
+int config_parse_interface(void *data, size_t len, const char *name, bool overwrite)
{
struct blob_attr *tb[IFACE_ATTR_MAX], *c;
- blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blob_data(b), blob_len(b));
+ blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, data, len);
if (tb[IFACE_ATTR_INTERFACE])
name = blobmsg_get_string(tb[IFACE_ATTR_INTERFACE]);
@@ -481,7 +481,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, true);
+ return config_parse_interface(blob_data(b.head), blob_len(b.head), s->e.name, true);
}