summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornsensfel <SpamShield0@noot-noot.org>2020-01-07 11:06:51 +0100
committernsensfel <SpamShield0@noot-noot.org>2020-01-07 11:06:51 +0100
commit99fc3898606bf9bc2a732facffc1a6fe6bfcf3a2 (patch)
tree7ca296de2a78a500b838d9a5d5a5fa3c0523fa18 /src/device/axis/axis_option.c
parent11138ae4e8e3ed2f01156189923f7904c8f21591 (diff)
...
Diffstat (limited to 'src/device/axis/axis_option.c')
-rw-r--r--src/device/axis/axis_option.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/device/axis/axis_option.c b/src/device/axis/axis_option.c
index fd1cb9c..1d68b78 100644
--- a/src/device/axis/axis_option.c
+++ b/src/device/axis/axis_option.c
@@ -4,6 +4,8 @@
/**** RELABSD *****************************************************************/
#include <relabsd/debug.h>
+#include <relabsd/util/string.h>
+
#include <relabsd/device/axis.h>
/******************************************************************************/
@@ -25,7 +27,7 @@ int relabsd_axis_enable_option_from_name
)
{
- if (strcmp(option_name, "direct") == 0)
+ if (RELABSD_IS_PREFIX("direct", option_name))
{
axis->flags[RELABSD_DIRECT] = 1;
@@ -38,11 +40,11 @@ int relabsd_axis_enable_option_from_name
);
}
}
- else if (strcmp(option_name, "real_fuzz") == 0)
+ else if (RELABSD_IS_PREFIX("real_fuzz", option_name))
{
axis->flags[RELABSD_REAL_FUZZ] = 1;
}
- else if (strcmp(option_name, "framed") == 0)
+ else if (RELABSD_IS_PREFIX("framed", option_name))
{
axis->flags[RELABSD_FRAMED] = 1;