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
+2 -2
View File
@@ -159,9 +159,9 @@ int main(int argc, char *argv[])
/* decode the command line parameters */
data->group_number = strtol(argv[1], NULL, 0);
data->write_priority = strtol(argv[2], NULL, 0);
if (strcasecmp(argv[3], "inhibit") == 0) {
if (bacnet_stricmp(argv[3], "inhibit") == 0) {
data->inhibit_delay = WRITE_GROUP_INHIBIT_DELAY_TRUE;
} else if (strcasecmp(argv[3], "delay") == 0) {
} else if (bacnet_stricmp(argv[3], "delay") == 0) {
data->inhibit_delay = WRITE_GROUP_INHIBIT_DELAY_FALSE;
} else {
data->inhibit_delay = WRITE_GROUP_INHIBIT_DELAY_FALSE;