From: Felix Fietkau Date: Sat, 4 Oct 2014 17:55:58 +0000 (+0200) Subject: iwinfo: use UBUS_METHOD_NOARG X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ed7d16a3e0953a02655d76b2a864b37192a0844c;p=project%2Frpcd.git iwinfo: use UBUS_METHOD_NOARG Signed-off-by: Felix Fietkau --- diff --git a/iwinfo.c b/iwinfo.c index 0d3c927..93407bb 100644 --- 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),