#endif
#include "inet_ntop.h"
-#include "strcase.h"
+#include "strequal.h"
#include "if2ip.h"
/* The last 3 #include files should be in this order */
#include "curl_printf.h"
#else
if(sa->sa_family == AF_INET6) {
const struct sockaddr_in6 * sa6 = (const struct sockaddr_in6 *)(void *) sa;
- const unsigned char *b = sa6->sin6_addr.s6_addr;
+ const unsigned char * b = sa6->sin6_addr.s6_addr;
unsigned short w = (unsigned short) ((b[0] << 8) | b[1]);
switch(w & 0xFFC0) {
if(getifaddrs(&head) >= 0) {
for(iface=head; iface != NULL; iface=iface->ifa_next) {
- if(strcasecompare(iface->ifa_name, interf)) {
+ if(curl_strequal(iface->ifa_name, interf)) {
result = TRUE;
break;
}
for(iface = head; iface != NULL; iface=iface->ifa_next) {
if(iface->ifa_addr != NULL) {
if(iface->ifa_addr->sa_family == af) {
- if(strcasecompare(iface->ifa_name, interf)) {
+ if(curl_strequal(iface->ifa_name, interf)) {
void *addr;
char *ip;
char scope[12] = "";
}
}
else if((res == IF2IP_NOT_FOUND) &&
- strcasecompare(iface->ifa_name, interf)) {
+ curl_strequal(iface->ifa_name, interf)) {
res = IF2IP_AF_NOT_SUPPORTED;
}
}