blobmsg-example: fix compile errors
This commit is contained in:
parent
e3efdcfe15
commit
ae3bcf84e1
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "blobmsg.h"
|
#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";
|
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);
|
blobmsg_buf_init(&buf);
|
||||||
fill_message(&buf);
|
fill_message(&buf);
|
||||||
dump_message(&buf);
|
dump_message(&buf);
|
||||||
fprintf(stderr, "json: %s\n", blobmsg_format_json(buf.head, false), true);
|
fprintf(stderr, "json: %s\n", blobmsg_format_json(buf.head, false));
|
||||||
|
|
||||||
if (buf.buf)
|
if (buf.buf)
|
||||||
free(buf.buf);
|
free(buf.buf);
|
||||||
|
|
Loading…
Add table
Reference in a new issue