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:
531570a
)
examples: remove set but unused variable
author
Luka Perkov
<luka@openwrt.org>
Thu, 3 Jul 2014 10:28:21 +0000
(12:28 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 3 Jul 2014 10:53:13 +0000
(12:53 +0200)
Fixes build failure.
Signed-off-by: Luka Perkov <luka@openwrt.org>
examples/blobmsg-example.c
patch
|
blob
|
history
diff --git
a/examples/blobmsg-example.c
b/examples/blobmsg-example.c
index 5d0a8d069a65ad9919a33246f86a277d6de8dfbf..01c0915988a700c06d113dbcad4e5d6620d301aa 100644
(file)
--- a/
examples/blobmsg-example.c
+++ b/
examples/blobmsg-example.c
@@
-16,7
+16,7
@@
static void dump_attr_data(void *data, int len, int type, int indent, int next_i
static void
dump_table(struct blob_attr *head, int len, int indent, bool array)
{
- struct blob_attr *attr
, *last_attr
;
+ struct blob_attr *attr;
struct blobmsg_hdr *hdr;
indent_printf(indent, "{\n");
@@
-25,7
+25,6
@@
dump_table(struct blob_attr *head, int len, int indent, bool array)
if (!array)
indent_printf(indent + 1, "%s : ", hdr->name);
dump_attr_data(blobmsg_data(attr), blobmsg_data_len(attr), blob_id(attr), 0, indent + 1);
- last_attr = attr;
}
indent_printf(indent, "}\n");
}