summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bemodule.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-12-06 22:38:19 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2015-12-07 18:41:49 +0100
commit4075c5421f35fe15adb08b9e3ae189a13ab7e408 (patch)
tree3d98c31fb57018200b462ad593d50a369f975f66 /ir/be/bemodule.c
parent31f3d128912d1097c070fee3bc46a122da28c181 (diff)
adt: Add and use 'streq()'.
Diffstat (limited to 'ir/be/bemodule.c')
-rw-r--r--ir/be/bemodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/bemodule.c b/ir/be/bemodule.c
index 3183bd3..41620fe 100644
--- a/ir/be/bemodule.c
+++ b/ir/be/bemodule.c
@@ -13,6 +13,7 @@
#include <stdbool.h>
#include "bemodule.h"
+#include "util.h"
#include "xmalloc.h"
/**
@@ -149,7 +150,7 @@ static bool set_opt_module(void *const data, size_t const length, char const *co
bool res = false;
for (const be_module_list_entry_t *module = *(moddata->list_head);
module != NULL; module = module->next) {
- if (strcmp(module->name, opt) == 0) {
+ if (streq(module->name, opt)) {
*(moddata->var) = module->data;
res = true;
break;