summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bemodule.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2011-06-20 19:47:51 +0200
committerMatthias Braun <matze@braunis.de>2011-06-21 20:05:11 +0200
commit8ccfe04ca59ff56fc32b2323b80cee2a5194694d (patch)
tree3b0173d80029bbf7cdedcd2c24792b495946c588 /ir/be/bemodule.c
parent89ac4d2c92d3aa5fa50bac6944c3db6fb1e1fdd1 (diff)
fix more cparser warnings, cleanup some libcore code
Diffstat (limited to 'ir/be/bemodule.c')
-rw-r--r--ir/be/bemodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c
index 9bf6693..2495898 100644
--- a/ir/be/bemodule.c
+++ b/ir/be/bemodule.c
@@ -228,7 +228,7 @@ static int dump_opt_module_vals(char *buf, size_t buflen, const char *name,
(void) len;
for (module = *(moddata->list_head); module != NULL; module = module->next) {
- size_t len = strlen(module->name);
+ size_t name_len = strlen(module->name);
if (module != *(moddata->list_head)) {
p = strncat(p, ", ", buflen - 1);
@@ -237,10 +237,10 @@ static int dump_opt_module_vals(char *buf, size_t buflen, const char *name,
p = strncat(p, module->name, buflen - 1);
- if (len >= buflen)
+ if (name_len >= buflen)
break;
- buflen -= len;
+ buflen -= name_len;
}
return strlen(buf);