From: Michael Jerris Date: Sat, 6 Jan 2007 20:24:37 +0000 (+0000) Subject: datatype to match usage. X-Git-Tag: v1.0-beta1~1381 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e614e06545d9b6ea67ffdada14206177bd725443;p=thirdparty%2Ffreeswitch.git datatype to match usage. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3920 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index 6eec275ab1..4eebbf76cf 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -162,7 +162,7 @@ static void socket_function(switch_core_session_t *session, char *data) char *host, *port_name; switch_socket_t *new_sock; switch_sockaddr_t *sa; - int port = 8084; + switch_port_t port = 8084; listener_t *listener; int argc = 0, x = 0; char *argv[80] = {0}; @@ -186,7 +186,7 @@ static void socket_function(switch_core_session_t *session, char *data) if ((port_name = strchr(host, ':'))) { *port_name++ = '\0'; - port = atoi(port_name); + port = (switch_port_t)atoi(port_name); } if (switch_sockaddr_info_get(&sa, host, AF_INET, port, 0, switch_core_session_get_pool(session)) != SWITCH_STATUS_SUCCESS) {