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:
authorLuka Perkov <luka@openwrt.org>2014-07-03 14:28:21 +0400
committerFelix Fietkau <nbd@openwrt.org>2014-07-03 14:53:13 +0400
commitb10cd1c0f6f1f1f9f5de66b89ce52a05ec6b5dca (patch)
tree7acf80b7ca528a99bbd05f67d1ef0fe2f4880285 /examples
parent531570aa51a99ccbd68e7697872d5b41646fd27e (diff)
examples: remove set but unused variable
Fixes build failure. Signed-off-by: Luka Perkov <luka@openwrt.org>
Diffstat (limited to 'examples')
-rw-r--r--examples/blobmsg-example.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c
index 5d0a8d0..01c0915 100644
--- 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");
}