Removed strcasecmp and strncasecmp because they are non-standand C functions. (#858)

This commit is contained in:
Steve Karg
2024-11-21 12:29:08 -06:00
committed by GitHub
parent f149481eff
commit 776b212995
13 changed files with 72 additions and 45 deletions
+3 -3
View File
@@ -558,13 +558,13 @@ bool bacnet_channel_value_from_ascii(
return false;
}
if (!status) {
if (strcasecmp(argv, "null") == 0) {
if (bacnet_stricmp(argv, "null") == 0) {
value->tag = BACNET_APPLICATION_TAG_NULL;
status = true;
}
}
if (!status) {
if (strcasecmp(argv, "true") == 0) {
if (bacnet_stricmp(argv, "true") == 0) {
value->tag = BACNET_APPLICATION_TAG_BOOLEAN;
#if defined(CHANNEL_BOOLEAN)
value->type.Boolean = true;
@@ -573,7 +573,7 @@ bool bacnet_channel_value_from_ascii(
}
}
if (!status) {
if (strcasecmp(argv, "false") == 0) {
if (bacnet_stricmp(argv, "false") == 0) {
value->tag = BACNET_APPLICATION_TAG_BOOLEAN;
#if defined(CHANNEL_BOOLEAN)
value->type.Boolean = false;