X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=ubus.c;h=1239b1b0b1967dbef1ff66201049bc1e5ac94f9f;hp=2e98b2b116267cdeab88fb1e835e951ca22e2ec9;hb=8d60ce8fad81a0951e9d7efe9e57d0b4b331095e;hpb=3062736f3cf323e3b0f95c4c97fdcf57ab768590 diff --git a/ubus.c b/ubus.c index 2e98b2b..1239b1b 100644 --- a/ubus.c +++ b/ubus.c @@ -33,7 +33,7 @@ static int netifd_handle_device(struct ubus_context *ctx, struct ubus_object *ob if (!tb[DEV_NAME]) return UBUS_STATUS_INVALID_ARGUMENT; - dev = get_device(blobmsg_data(tb[DEV_NAME]), false); + dev = device_get(blobmsg_data(tb[DEV_NAME]), false); if (!dev) return UBUS_STATUS_NOT_FOUND; @@ -94,7 +94,7 @@ static int netifd_handle_up(struct ubus_context *ctx, struct ubus_object *obj, struct interface *iface; iface = container_of(obj, struct interface, ubus); - set_interface_up(iface); + interface_set_up(iface); return 0; }