fix compiler warnings
[project/netifd.git] / ubus.c
diff --git a/ubus.c b/ubus.c
index 72cf0e5..aa1378b 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -33,12 +33,12 @@ 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;
 
        if (!add || (tb[DEV_FORCE] && blobmsg_get_u8(tb[DEV_FORCE])))
-               set_device_present(dev, add);
+               device_set_present(dev, add);
        else
                check_device_state(dev);
 
@@ -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;
 }
@@ -106,7 +106,7 @@ static int netifd_handle_down(struct ubus_context *ctx, struct ubus_object *obj,
        struct interface *iface;
 
        iface = container_of(obj, struct interface, ubus);
-       set_interface_down(iface);
+       interface_set_down(iface);
 
        return 0;
 }