From: Jo-Philipp Wich Date: Thu, 12 Sep 2013 11:36:49 +0000 (+0200) Subject: plugin: use blobmsg_type() instead of blob_id() X-Git-Url: http://git.openwrt.org/?p=project%2Frpcd.git;a=commitdiff_plain;h=6b189b2201b4302e5e287a9aa51a29c06bdefb11 plugin: use blobmsg_type() instead of blob_id() --- diff --git a/plugin.c b/plugin.c index 2d5b6c1..ba8d8db 100644 --- a/plugin.c +++ b/plugin.c @@ -194,7 +194,7 @@ rpc_plugin_parse_signature(struct blob_attr *sig, struct ubus_method *method) struct blob_attr *attr; struct blobmsg_policy *policy = NULL; - if (!sig || blob_id(sig) != BLOBMSG_TYPE_TABLE) + if (!sig || blobmsg_type(sig) != BLOBMSG_TYPE_TABLE) return false; n_attr = 0; @@ -213,7 +213,7 @@ rpc_plugin_parse_signature(struct blob_attr *sig, struct ubus_method *method) blobmsg_for_each_attr(attr, sig, rem) { - type = blob_id(attr); + type = blobmsg_type(attr); if (type == BLOBMSG_TYPE_INT32) {