diff options
author | John Crispin <blogic@openwrt.org> | 2013-07-10 12:47:35 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-07-10 12:49:02 +0200 |
commit | 14f1faba725c14fbcc50a89994c0185262b7f3cb (patch) | |
tree | 0c25e0d4042c865869cf2197fa7ddd558c278277 | |
parent | 721b75070af01c2c49b5abe80baae1d95ca5a603 (diff) | |
download | unitd-14f1faba725c14fbcc50a89994c0185262b7f3cb.tar unitd-14f1faba725c14fbcc50a89994c0185262b7f3cb.zip |
make the verbose argument a bool
Signed-off-by: John Crispin <blogic@openwrt.org>
-rw-r--r-- | service.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -150,7 +150,7 @@ enum { }; static const struct blobmsg_policy service_list_attrs[__SERVICE_LIST_ATTR_MAX] = { - [SERVICE_LIST_ATTR_VERBOSE] = { "verbose", BLOBMSG_TYPE_INT32 }, + [SERVICE_LIST_ATTR_VERBOSE] = { "verbose", BLOBMSG_TYPE_BOOL }, }; enum { @@ -236,7 +236,7 @@ service_handle_list(struct ubus_context *ctx, struct ubus_object *obj, blobmsg_parse(service_list_attrs, __SERVICE_LIST_ATTR_MAX, tb, blob_data(msg), blob_len(msg)); - if (tb[SERVICE_LIST_ATTR_VERBOSE] && blobmsg_get_u32(tb[SERVICE_LIST_ATTR_VERBOSE])) + if (tb[SERVICE_LIST_ATTR_VERBOSE] && blobmsg_get_bool(tb[SERVICE_LIST_ATTR_VERBOSE])) verbose = 1; blob_buf_init(&b, 0); |