summaryrefslogtreecommitdiffhomepage
path: root/ir/libcore
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-07-12 19:26:10 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2012-07-13 23:03:56 +0200
commit7d61ad5fbb6a87bea369c8a01103a92d9ab79a48 (patch)
tree2d9a76fc0124fb0cdda9336c961907ce7b3e46fc /ir/libcore
parentc6571686bfbfb3c87ae24ae1dc568e685d6cd49a (diff)
Add the return type as parameter to the macros set_find() and set_insert().
Diffstat (limited to 'ir/libcore')
-rw-r--r--ir/libcore/lc_printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/libcore/lc_printf.c b/ir/libcore/lc_printf.c
index 402d271..416fc66 100644
--- a/ir/libcore/lc_printf.c
+++ b/ir/libcore/lc_printf.c
@@ -113,7 +113,7 @@ int lc_arg_register(lc_arg_env_t *env, const char *name, char letter, const lc_a
base = 'a';
}
- ent = (lc_arg_t*)set_insert(env->args, &arg, sizeof(arg), hash_str(name));
+ ent = set_insert(lc_arg_t, env->args, &arg, sizeof(arg), hash_str(name));
if (ent && base != 0)
map[letter - base] = ent;
@@ -438,7 +438,7 @@ int lc_evpprintf(const lc_arg_env_t *env, lc_appendable_t *app, const char *fmt,
name[n] = '\0';
tmp.name = name;
- arg = (lc_arg_t*)set_find(env->args, &tmp, sizeof(tmp), hash_str(named));
+ arg = set_find(lc_arg_t, env->args, &tmp, sizeof(tmp), hash_str(named));
occ.modifier = "";
occ.modifier_length = 0;