forked from osmocom/wireshark
Fix some of the GCC build errors, more to come.
svn path=/trunk/; revision=43889
This commit is contained in:
parent
f701cc63e5
commit
897d72c358
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue