forked from Mirrors/freeswitch
correct types on invalid_handler
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1029 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c3dd8811dc
commit
271d4b48c0
@ -51,7 +51,7 @@ extern "C" {
|
||||
typedef void (*switch_rtp_invalid_handler)(switch_rtp *rtp_session,
|
||||
switch_socket_t *sock,
|
||||
void *data,
|
||||
unsigned int datalen,
|
||||
switch_size_t datalen,
|
||||
switch_sockaddr_t *from_addr);
|
||||
|
||||
|
||||
|
@ -177,7 +177,7 @@ static switch_status channel_write_frame(switch_core_session *session, switch_fr
|
||||
static switch_status channel_kill_channel(switch_core_session *session, int sig);
|
||||
static ldl_status handle_signalling(ldl_handle_t *handle, ldl_session_t *dlsession, ldl_signal_t signal, char *msg);
|
||||
static ldl_status handle_response(ldl_handle_t *handle, char *id);
|
||||
static void stun_callback(struct switch_rtp *switch_rtp, switch_socket_t *sock, void *data, unsigned int len, switch_sockaddr_t *from_addr);
|
||||
static void stun_callback(struct switch_rtp *switch_rtp, switch_socket_t *sock, void *data, switch_size_t len, switch_sockaddr_t *from_addr);
|
||||
static switch_status load_config(void);
|
||||
|
||||
|
||||
@ -1402,7 +1402,7 @@ static ldl_status handle_response(ldl_handle_t *handle, char *id)
|
||||
return LDL_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static void stun_callback(struct switch_rtp *switch_rtp, switch_socket_t *sock, void *data, unsigned int len, switch_sockaddr_t *from_addr)
|
||||
static void stun_callback(struct switch_rtp *switch_rtp, switch_socket_t *sock, void *data, switch_size_t len, switch_sockaddr_t *from_addr)
|
||||
{
|
||||
stun_packet_t *packet;
|
||||
stun_packet_attribute_t *attr;
|
||||
|
@ -245,7 +245,7 @@ SWITCH_DECLARE(int) switch_rtp_read(switch_rtp *rtp_session, void *data, uint32_
|
||||
}
|
||||
memcpy(data, rtp_session->recv_msg.body, bytes);
|
||||
*payload_type = rtp_session->recv_msg.header.pt;
|
||||
return bytes - rtp_header_len;
|
||||
return (int)(bytes - rtp_header_len);
|
||||
|
||||
}
|
||||
|
||||
@ -274,7 +274,7 @@ SWITCH_DECLARE(int) switch_rtp_zerocopy_read(switch_rtp *rtp_session, void **dat
|
||||
*payload_type = rtp_session->recv_msg.header.pt;
|
||||
*data = rtp_session->recv_msg.body;
|
||||
|
||||
return bytes - rtp_header_len;
|
||||
return (int)(bytes - rtp_header_len);
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(int) switch_rtp_write(switch_rtp *rtp_session, void *data, int datalen, uint32_t ts)
|
||||
|
Loading…
Reference in New Issue
Block a user