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 <[email protected]> --- examples/blobmsg-example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.0.1 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
