X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;f=examples%2Fblobmsg-example.c;h=2c2e703f09c0b564d5ddecdeea53cbc44464aec2;hb=432b93f633ff280e6f13a6375560479acda27bfa;hp=3630208be16b3937f2fb7b07d835d46dad3474b4;hpb=5129bc940168d080e9b3aa63ae0f92a531455b0e;p=project%2Flibubox.git diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c index 3630208..2c2e703 100644 --- a/examples/blobmsg-example.c +++ b/examples/blobmsg-example.c @@ -1,6 +1,7 @@ #include #include "blobmsg.h" +#include "blobmsg_json.h" static const char *indent_str = "\t\t\t\t\t\t\t\t\t\t\t\t\t"; @@ -128,7 +129,7 @@ int main(int argc, char **argv) blobmsg_buf_init(&buf); fill_message(&buf); dump_message(&buf); - fprintf(stderr, "json: %s\n", blobmsg_format_json(buf.head)); + fprintf(stderr, "json: %s\n", blobmsg_format_json(buf.head, false)); if (buf.buf) free(buf.buf);