summaryrefslogtreecommitdiffhomepage
path: root/ubus.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-10-19 17:30:04 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-10-19 17:30:04 +0200
commit65963f0ad2207b55dc7715015839b59b58855a67 (patch)
treec6b7cbc6afce934627f85ee25e7c1bdb560414cf /ubus.c
parent566af724dad393fa127e07469dcc9ade62bd3a75 (diff)
interface: remove "dynamic" argument for interface_init, add the interface_set_dynamic function instead
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'ubus.c')
-rw-r--r--ubus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ubus.c b/ubus.c
index 513b40c..cfdfcf3 100644
--- a/ubus.c
+++ b/ubus.c
@@ -139,7 +139,8 @@ netifd_add_dynamic(struct ubus_context *ctx, struct ubus_object *obj,
if (!iface)
return UBUS_STATUS_UNKNOWN_ERROR;
- interface_init(iface, name, msg, true);
+ interface_init(iface, name, msg);
+ interface_set_dynamic(iface);
iface->device_config = true;
config = blob_memdup(msg);