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>
This commit is contained in:
Luka Perkov 2014-07-03 13:46:24 +02:00 committed by Felix Fietkau
parent 8cee1e552a
commit b538c2b20e

View file

@ -34,7 +34,7 @@ static void dump_attr_data(struct blob_attr *data, int indent, int next_indent)
int type = blobmsg_type(data); int type = blobmsg_type(data);
switch(type) { switch(type) {
case BLOBMSG_TYPE_STRING: case BLOBMSG_TYPE_STRING:
indent_printf(indent, "%s\n", blobmsg_data(data)); indent_printf(indent, "%s\n", (char *) blobmsg_data(data));
break; break;
case BLOBMSG_TYPE_INT8: case BLOBMSG_TYPE_INT8:
indent_printf(indent, "%d\n", blobmsg_get_u8(data)); indent_printf(indent, "%d\n", blobmsg_get_u8(data));