projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make the verbose argument a bool
[project/procd.git]
/
service.c
diff --git
a/service.c
b/service.c
index
3a21ed0
..
8aae975
100644
(file)
--- a/
service.c
+++ b/
service.c
@@
-150,7
+150,7
@@
enum {
};
static const struct blobmsg_policy service_list_attrs[__SERVICE_LIST_ATTR_MAX] = {
};
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 {
};
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));
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);
verbose = 1;
blob_buf_init(&b, 0);