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
+1 -1
View File
@@ -121,7 +121,7 @@ void bip6_set_interface(char *ifname)
debug_fprintf_bip6(stdout, "BIP6: found interface: %s\n", ifa_tmp->ifa_name);
}
if ((ifa_tmp->ifa_addr) && (ifa_tmp->ifa_addr->sa_family == AF_INET6) &&
(strcasecmp(ifa_tmp->ifa_name, ifname) == 0)) {
(bacnet_stricmp(ifa_tmp->ifa_name, ifname) == 0)) {
sin = (struct sockaddr_in6 *)ifa_tmp->ifa_addr;
bvlc6_address_set(&BIP6_Addr, ntohs(sin->sin6_addr.s6_addr16[0]),
ntohs(sin->sin6_addr.s6_addr16[1]),