summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.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/bearch.c
parent31f3d128912d1097c070fee3bc46a122da28c181 (diff)
adt: Add and use 'streq()'.
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index 500f279..9643ccf 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -111,7 +111,7 @@ arch_register_t const *arch_find_register(char const *const name)
arch_register_t const *const regs = isa_if->registers;
for (size_t i = 0, n = isa_if->n_registers; i < n; ++i) {
arch_register_t const *const reg = &regs[i];
- if (strcmp(reg->name, name) == 0)
+ if (streq(reg->name, name))
return reg;
}
return NULL;