summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-20 10:24:00 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-20 10:25:51 +0200
commit43b545e3269a432382c13559abc75c15ebde83e7 (patch)
tree85faf7a58eceb00aafe0a49f6554d087d41d841c /ir/libcore
parent337762aba778a059962d1426577c8a5269b51a57 (diff)
Let list_for_each_entry(), list_for_each_entry_reverse() and list_for_each_entry_safe() declare their iterator variables.
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_opts.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/libcore/lc_opts.c b/ir/libcore/lc_opts.c
index db1cb68..48fa148 100644
--- a/ir/libcore/lc_opts.c
+++ b/ir/libcore/lc_opts.c
@@ -232,7 +232,7 @@ lc_opt_entry_t *lc_opt_add_opt(lc_opt_entry_t *parent,
static lc_opt_entry_t *lc_opt_find_ent(const struct list_head *head, const char *name,
int error_to_use, lc_opt_err_info_t *err)
{
- lc_opt_entry_t *ent, *found = NULL;
+ lc_opt_entry_t *found = NULL;
int error = error_to_use;
unsigned hash = hash_str(name);
@@ -611,7 +611,6 @@ static void lc_opt_print_help_rec(lc_opt_entry_t *ent, char separator, lc_opt_en
char grp_name[512];
char value[256];
char values[512];
- lc_opt_entry_t *e;
if (!list_empty(&s->opts)) {
lc_opt_print_grp_path(grp_name, sizeof(grp_name), ent, separator, stop_ent);
@@ -669,8 +668,6 @@ static void lc_opt_print_tree_grp_indent(lc_opt_entry_t *ent, FILE *f, int level
lc_grp_special_t *s;
if (ent->is_grp) {
- lc_opt_entry_t *e;
-
s = lc_get_grp_special(ent);
indent(f, level);
fprintf(f, "/%s\n", ent->name);