Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'blobmsg.c')
-rw-r--r--blobmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/blobmsg.c b/blobmsg.c
index bdc5ef7..69a160b 100644
--- a/blobmsg.c
+++ b/blobmsg.c
@@ -155,7 +155,7 @@ static void blobmsg_format_json_list(struct strbuf *s, struct blob_attr *attr, i
blobmsg_puts(s, (array ? " ]" : " }"), 2);
}
-char *blobmsg_format_json(struct blob_attr *attr)
+char *blobmsg_format_json(struct blob_attr *attr, bool named)
{
struct strbuf s;
@@ -163,7 +163,7 @@ char *blobmsg_format_json(struct blob_attr *attr)
s.buf = malloc(s.len);
s.pos = 0;
- blobmsg_format_element(&s, attr, true, true);
+ blobmsg_format_json_list(&s, blob_data(attr), blob_len(attr), !named);
if (!s.len)
return NULL;