diff options
author | Luka Perkov <luka@openwrt.org> | 2014-07-03 15:46:24 +0400 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-03 15:48:30 +0400 |
commit | b538c2b20ea4972efa3e223e8f01bd5441f35375 (patch) | |
tree | b4dd94d6b4a98e877526f776db662b9f056cee23 /examples | |
parent | 8cee1e552ab281dbbf0f862e4e4e327028c0399b (diff) |
examples: fix build error
Patch fixes the following error:
error: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘void *’ [-Werror=format=]
indent_printf(indent, "%s\n", blobmsg_data(data));
Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/blobmsg-example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c index d306f07..6330fea 100644 --- a/examples/blobmsg-example.c +++ b/examples/blobmsg-example.c @@ -34,7 +34,7 @@ static void dump_attr_data(struct blob_attr *data, int indent, int next_indent) int type = blobmsg_type(data); switch(type) { case BLOBMSG_TYPE_STRING: - indent_printf(indent, "%s\n", blobmsg_data(data)); + indent_printf(indent, "%s\n", (char *) blobmsg_data(data)); break; case BLOBMSG_TYPE_INT8: indent_printf(indent, "%d\n", blobmsg_get_u8(data)); |