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
-4
View File
@@ -36,10 +36,6 @@
#include <poll.h> /* for convenience */
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h> /* for convenience */
#endif
/* Three headers are normally needed for socket/file ioctl's:
* <sys/ioctl.h>, <sys/filio.h>, and <sys/sockio.h>.
*/
+1 -1
View File
@@ -109,7 +109,7 @@ void bip6_set_interface(char *ifname)
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]),