From 77121a3184f4e61d87554d8712719cb23095e3ff Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 10 Apr 2007 17:34:53 +0000 Subject: [PATCH] windows build var types. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4909 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_ivr.h | 8 ++++---- src/switch_ivr.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/include/switch_ivr.h b/src/include/switch_ivr.h index a31fc7300b..dde5051185 100644 --- a/src/include/switch_ivr.h +++ b/src/include/switch_ivr.h @@ -50,9 +50,9 @@ struct switch_unicast_conninfo { switch_byte_t write_frame_data[SWITCH_RECOMMENDED_BUFFER_SIZE]; switch_socket_t *socket; char *local_ip; - uint32_t local_port; + switch_port_t local_port; char *remote_ip; - uint32_t remote_port; + switch_port_t remote_port; switch_sockaddr_t *local_addr; switch_sockaddr_t *remote_addr; switch_mutex_t *flag_mutex; @@ -75,9 +75,9 @@ typedef struct switch_unicast_conninfo switch_unicast_conninfo_t; SWITCH_DECLARE(switch_status_t) switch_ivr_deactivate_unicast(switch_core_session_t *session); SWITCH_DECLARE(switch_status_t) switch_ivr_activate_unicast(switch_core_session_t *session, char *local_ip, - uint32_t local_port, + switch_port_t local_port, char *remote_ip, - uint32_t remote_port, + switch_port_t remote_port, char *transport); /*! diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 49d8c47298..7063128d40 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -83,7 +83,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session, static void *SWITCH_THREAD_FUNC unicast_thread_run(switch_thread_t *thread, void *obj) { switch_unicast_conninfo_t *conninfo = (switch_unicast_conninfo_t *) obj; - switch_size_t len; + uint32_t len; switch_channel_t *channel; if (!conninfo) { @@ -153,9 +153,9 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_deactivate_unicast(switch_core_sessio SWITCH_DECLARE(switch_status_t) switch_ivr_activate_unicast(switch_core_session_t *session, char *local_ip, - uint32_t local_port, + switch_port_t local_port, char *remote_ip, - uint32_t remote_port, + switch_port_t remote_port, char *transport) { switch_channel_t *channel; @@ -324,7 +324,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_parse_event(switch_core_session_t *se transport = "udp"; } - switch_ivr_activate_unicast(session, local_ip, atoi(local_port), remote_ip, atoi(remote_port), transport); + switch_ivr_activate_unicast(session, local_ip, (switch_port_t)atoi(local_port), remote_ip, (switch_port_t)atoi(remote_port), transport); } else if (cmd_hash == CMD_HANGUP) { char *cause_name = switch_event_get_header(event, "hangup-cause");