[Freeswitch-svn] [commit] r11792 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su

FreeSWITCH SVN mikej at freeswitch.org
Wed Feb 11 08:45:51 PST 2009


Author: mikej
Date: Wed Feb 11 10:45:51 2009
New Revision: 11792

Log:
Thu Jan  8 12:13:38 CST 2009  Pekka Pessi <first.last at nokia.com>
  * su: using <sofia-sip/su_string.h>



Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_port.c
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Wed Feb 11 10:45:51 2009
@@ -1 +1 @@
-Wed Feb 11 10:27:42 CST 2009
+Wed Feb 11 10:45:40 CST 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_localinfo.c	Wed Feb 11 10:45:51 2009
@@ -41,6 +41,7 @@
 
 #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>
@@ -1600,7 +1601,7 @@
 	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))

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_port.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_port.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_port.c	Wed Feb 11 10:45:51 2009
@@ -139,7 +139,7 @@
   }
 #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;
   }

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c	Wed Feb 11 10:45:51 2009
@@ -57,6 +57,7 @@
 #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);
@@ -1399,10 +1400,10 @@
   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 {



More information about the Freeswitch-svn mailing list