Skip to content

Commit

Permalink
blobmsg-example: use blobmsg_get_string()
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <[email protected]>
Felix Fietkau committed Jul 3, 2014
1 parent b538c2b commit fd5b522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/blobmsg-example.c
Original file line number Diff line number Diff line change
@@ -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", (char *) blobmsg_data(data));
indent_printf(indent, "%s\n", blobmsg_get_string(data));
break;
case BLOBMSG_TYPE_INT8:
indent_printf(indent, "%d\n", blobmsg_get_u8(data));

0 comments on commit fd5b522

Please sign in to comment.