projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b538c2b
)
blobmsg-example: use blobmsg_get_string()
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 3 Jul 2014 11:50:49 +0000
(13:50 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 3 Jul 2014 11:50:49 +0000
(13:50 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
examples/blobmsg-example.c
patch
|
blob
|
history
diff --git
a/examples/blobmsg-example.c
b/examples/blobmsg-example.c
index 6330fea33095fdf9dfcbd87eee6dbd8e78fa6485..69ddce896059da62a20e52c46bb691fb584e35e6 100644
(file)
--- 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",
(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));