diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-09-12 13:36:49 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-09-12 13:36:49 +0200 |
commit | 6b189b2201b4302e5e287a9aa51a29c06bdefb11 (patch) | |
tree | 55fb2bfd1b851d8ca212aaf984054e490fcaec71 | |
parent | 22c7c2675d9460dc260db36254fb20125e8d2467 (diff) | |
download | rpcd-6b189b2201b4302e5e287a9aa51a29c06bdefb11.tar.gz |
plugin: use blobmsg_type() instead of blob_id()
-rw-r--r-- | plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |