Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-07-03 15:50:49 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-07-03 15:50:49 +0400
commitfd5b522ce6af8584a9c9259700b8916f06f85766 (patch)
tree4275d77c88f879aa4e0929d6068791845f909e88 /examples
parentb538c2b20ea4972efa3e223e8f01bd5441f35375 (diff)
blobmsg-example: use blobmsg_get_string()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/blobmsg-example.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c
index 6330fea..69ddce8 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", (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));