iwinfo: use UBUS_METHOD_NOARG
authorFelix Fietkau <nbd@openwrt.org>
Sat, 4 Oct 2014 17:55:58 +0000 (19:55 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 4 Oct 2014 17:55:58 +0000 (19:55 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
iwinfo.c

index 0d3c927f0dab22bf0674255868ffffcb143ec07e..93407bbfa4cb3c7bbb2b8688943652a2129b5e94 100644 (file)
--- a/iwinfo.c
+++ b/iwinfo.c
@@ -630,7 +630,7 @@ static int
 rpc_iwinfo_api_init(const struct rpc_daemon_ops *o, struct ubus_context *ctx)
 {
        static const struct ubus_method iwinfo_methods[] = {
-               { .name = "devices", .handler = rpc_iwinfo_devices },
+               UBUS_METHOD_NOARG("devices", rpc_iwinfo_devices),
                UBUS_METHOD("info",        rpc_iwinfo_info,        rpc_device_policy),
                UBUS_METHOD("scan",        rpc_iwinfo_scan,        rpc_device_policy),
                UBUS_METHOD("assoclist",   rpc_iwinfo_assoclist,   rpc_device_policy),