summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
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/lpp
parent31f3d128912d1097c070fee3bc46a122da28c181 (diff)
adt: Add and use 'streq()'.
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp_solvers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/lpp/lpp_solvers.c b/ir/lpp/lpp_solvers.c
index 080a739..62e3173 100644
--- a/ir/lpp/lpp_solvers.c
+++ b/ir/lpp/lpp_solvers.c
@@ -10,6 +10,7 @@
#include "lpp_solvers.h"
#include "lpp_cplex.h"
#include "lpp_gurobi.h"
+#include "util.h"
lpp_solver_t lpp_solvers[] = {
#ifdef WITH_CPLEX
@@ -29,7 +30,7 @@ lpp_solver_func_t *lpp_find_solver(const char *name)
return lpp_solvers[0].solver;
for(i = 0; lpp_solvers[i].solver != NULL; i++)
- if(strcmp(lpp_solvers[i].name, name) == 0)
+ if (streq(lpp_solvers[i].name, name))
return lpp_solvers[i].solver;
return NULL;