[Freeswitch-svn] [commit] r3920 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket

Freeswitch SVN mikej at freeswitch.org
Sat Jan 6 15:24:37 EST 2007


Author: mikej
Date: Sat Jan  6 15:24:37 2007
New Revision: 3920

Modified:
   freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c

Log:
datatype to match usage.

Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	(original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c	Sat Jan  6 15:24:37 2007
@@ -162,7 +162,7 @@
     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 @@
 
     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) {



More information about the Freeswitch-svn mailing list