projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add BLOBMSG_TYPE_BOOL as an alias for BLOBMSG_TYPE_INT8
[project/libubox.git]
/
blobmsg_json.c
diff --git
a/blobmsg_json.c
b/blobmsg_json.c
index 0539bd1654db79e2abd985b2862531f32a6bfc7d..3053fa3c8eaf13e0ee61bc251230c97321b1816d 100644
(file)
--- a/
blobmsg_json.c
+++ b/
blobmsg_json.c
@@
-228,7
+228,7
@@
static void blobmsg_format_element(struct strbuf *s, struct blob_attr *attr, boo
data_str = buf;
switch(blob_id(attr)) {
- case BLOBMSG_TYPE_
INT8
:
+ case BLOBMSG_TYPE_
BOOL
:
sprintf(buf, "%s", *(uint8_t *)data ? "true" : "false");
break;
case BLOBMSG_TYPE_INT32: