diff options
author | Steven Barth <steven@midlink.org> | 2014-03-20 10:37:38 +0100 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2014-03-20 10:37:38 +0100 |
commit | d8cfeab6d37b470a33eeb0fac34934442f890f20 (patch) | |
tree | f06a0d8cde142ed0ae52949c9786ae1af6f77d5b /src/ubus.c | |
parent | a85ccf1aa14d3d860e6ac0e7c56ba4695462afa1 (diff) |
ubus: don't redeclare variable c
Diffstat (limited to 'src/ubus.c')
-rw-r--r-- | src/ubus.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -222,15 +222,15 @@ static void subscribe_netifd(void) void ubus_apply_network(void) { - struct blob_attr *c; + struct blob_attr *a; unsigned rem; if (!dump) return; - blobmsg_for_each_attr(c, dump, rem) { + blobmsg_for_each_attr(a, dump, rem) { struct blob_attr *tb[IFACE_ATTR_MAX]; - blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blobmsg_data(c), blobmsg_data_len(c)); + blobmsg_parse(iface_attrs, IFACE_ATTR_MAX, tb, blobmsg_data(a), blobmsg_data_len(a)); if (!tb[IFACE_ATTR_INTERFACE] || !tb[IFACE_ATTR_DATA]) continue; |