Fix some of the GCC build errors, more to come.

svn path=/trunk/; revision=43889
This commit is contained in:
Evan Huus 2012-07-21 13:25:14 +00:00
parent f701cc63e5
commit 897d72c358
2 changed files with 5 additions and 3 deletions

View File

@ -554,7 +554,7 @@ dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
set_rtp = TRUE;
/* SPRT might use the same port... */
p_add_proto_data(pinfo->fd, proto_sprt, (void*)port);
p_add_proto_data(pinfo->fd, proto_sprt, &port);
}
if (rtcp_handle) {
port++;
@ -571,7 +571,9 @@ dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
src_addr.data=(guint8*)&ipaddr;
if(sprt_handle) {
if(port == 0) {
sprt_add_address(pinfo, &src_addr, (int)p_get_proto_data(pinfo->fd, proto_sprt), 0, "SDP", pinfo->fd->num); /* will use same port as RTP */
sprt_add_address(pinfo, &src_addr,
*(guint32*)p_get_proto_data(pinfo->fd, proto_sprt),
0, "SDP", pinfo->fd->num); /* will use same port as RTP */
} else {
sprt_add_address(pinfo, &src_addr, port, 0, "SDP", pinfo->fd->num);
}

View File

@ -624,7 +624,7 @@ dissect_sprt_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
*/
if(tvb_length(tvb) < 6)
return FALSE; /* packet is waay to short
return FALSE; /* packet is waay to short */
/* Get the fields in the first two octets */
extension_bit = tvb_get_guint8(tvb, offset) & 0x7F;