#include <sofia-sip/su.h>
#include <sofia-sip/su_localinfo.h>
+#include <sofia-sip/su_string.h>
#include "su_module_debug.h"
#include <stdio.h>
return ELI_RESOLVER;
}
- if (hints->li_canonname && strcasecmp(name, hints->li_canonname))
+ if (hints->li_canonname && !su_casematch(name, hints->li_canonname))
return 1;
if (!(flags & LI_CANONNAME))
}
#endif
#if HAVE_WIN32
- else if (strcasecmp(name, "wsaevent") == 0) {
+ else if (su_casematch(name, "wsaevent")) {
create = su_wsaevent_port_create;
start = su_wsaevent_clone_start;
}
#include <sofia-sip/su_tag_class.h>
#include <sofia-sip/su_tag_inline.h>
#include <sofia-sip/su_tagarg.h>
+#include <sofia-sip/su_string.h>
#ifndef HAVE_STRTOULL
unsigned longlong strtoull(const char *, char **, int);
int retval;
int value = 0;
- if (strncasecmp(s, "true", 4) == 0
+ if (su_casenmatch(s, "true", 4)
&& strlen(s + 4) == strspn(s + 4, " \t\r\n")) {
value = 1, retval = 1;
- } else if (strncasecmp(s, "false", 5) == 0
+ } else if (su_casenmatch(s, "false", 5)
&& strlen(s + 5) == strspn(s + 5, " \t\r\n")) {
value = 0, retval = 1;
} else {