From 10b583c07025b82a1e9be378fa7ab1e69395cf1e Mon Sep 17 00:00:00 2001 From: Ivan Kuchin Date: Sat, 14 Nov 2020 17:42:17 +0100 Subject: [PATCH] use strcmp instead of strcasecmp when comparing with number --- blueutil.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blueutil.m b/blueutil.m index 3e14d8c..9edc247 100644 --- a/blueutil.m +++ b/blueutil.m @@ -176,12 +176,12 @@ void extend_optarg(int argc, char *argv[]) { } bool parse_state_arg(char *arg, enum state *state) { - if (0 == strcasecmp(arg, "1") || 0 == strcasecmp(arg, "on")) { + if (0 == strcmp(arg, "1") || 0 == strcasecmp(arg, "on")) { *state = on; return true; } - if (0 == strcasecmp(arg, "0") || 0 == strcasecmp(arg, "off")) { + if (0 == strcmp(arg, "0") || 0 == strcasecmp(arg, "off")) { *state = off; return true; }