From a8ee947d375af738c727a1d50a8fbff9c3f8f02e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Wed, 11 Feb 2009 16:54:20 +0000 Subject: [PATCH] Mon Jan 12 08:27:07 CST 2009 Pekka Pessi * su_port.c: added #include Making poll mechanism name matching case-insensitive. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11811 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/sofia-sip/.update | 2 +- libs/sofia-sip/libsofia-sip-ua/su/su_port.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libs/sofia-sip/.update b/libs/sofia-sip/.update index b413eb3474..e975094d3e 100644 --- a/libs/sofia-sip/.update +++ b/libs/sofia-sip/.update @@ -1 +1 @@ -Wed Feb 11 10:53:44 CST 2009 +Wed Feb 11 10:54:13 CST 2009 diff --git a/libs/sofia-sip/libsofia-sip-ua/su/su_port.c b/libs/sofia-sip/libsofia-sip-ua/su/su_port.c index 422e72482c..8d6abe3d2a 100644 --- a/libs/sofia-sip/libsofia-sip-ua/su/su_port.c +++ b/libs/sofia-sip/libsofia-sip-ua/su/su_port.c @@ -44,8 +44,8 @@ #define su_port_s su_virtual_port_s #include "su_port.h" +#include -#include #include /** Create the default su_port_t implementation. */ @@ -115,25 +115,25 @@ void su_port_set_system_preferences(char const *name) if (name == NULL) ; #if HAVE_EPOLL - else if (strcmp(name, "epoll") == 0) { + else if (su_casematch(name, "epoll")) { create = su_epoll_port_create; start = su_epoll_clone_start; } #endif #if HAVE_KQUEUE - else if (strcmp(name, "kqueue") == 0) { + else if (su_casematch(name, "kqueue")) { create = su_kqueue_port_create; start = su_kqueue_clone_start; } #endif #if HAVE_SYS_DEVPOLL_H - else if (strcmp(name, "devpoll") == 0) { + else if (su_casematch(name, "devpoll")) { create = su_devpoll_port_create; start = su_devpoll_clone_start; } #endif #if HAVE_POLL_PORT - else if (strcmp(name, "poll") == 0) { + else if (su_casematch(name, "poll")) { create = su_poll_port_create; start = su_poll_clone_start; } @@ -144,7 +144,7 @@ void su_port_set_system_preferences(char const *name) start = su_wsaevent_clone_start; } #elif HAVE_SELECT - else if (strcmp(name, "select") == 0) { + else if (su_casematch(name, "select")) { create = su_select_port_create; start = su_select_clone_start; }