summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-10-15 15:06:29 +0200
committerSteven Barth <steven@midlink.org>2013-10-15 15:06:29 +0200
commit6f448c01f3c998d5761e1539764dde7979c82286 (patch)
treefe3b7eb4513b4664a7c4da7cdf9a05c79d173376 /src
parentab6cef402c4f5982fddf72a8633d2a463e8d9006 (diff)
Fix blobmsg iteration
Diffstat (limited to 'src')
-rw-r--r--src/ubus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ubus.c b/src/ubus.c
index f014eda..dd478a9 100644
--- a/src/ubus.c
+++ b/src/ubus.c
@@ -191,7 +191,7 @@ static int handle_update(_unused struct ubus_context *ctx, _unused struct ubus_o
struct blob_attr *msg)
{
struct blob_attr *tb[IFACE_ATTR_MAX];
- blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blob_data(msg), blob_len(msg));
+ blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blobmsg_data(msg), blobmsg_data_len(msg));
const char *interface = (tb[IFACE_ATTR_INTERFACE]) ?
blobmsg_get_string(tb[IFACE_ATTR_INTERFACE]) : "";
@@ -229,7 +229,7 @@ void ubus_apply_network(void)
blobmsg_for_each_attr(c, dump, rem) {
struct blob_attr *tb[IFACE_ATTR_MAX];
- blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blob_data(c), blob_len(c));
+ blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blobmsg_data(c), blobmsg_data_len(c));
if (!tb[IFACE_ATTR_INTERFACE] || !tb[IFACE_ATTR_DATA])
continue;