aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtcp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-09-03 08:10:46 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-09-03 08:10:46 +0000
commit3a658bdcab8f7147a94e2eb9dd60932bbde35a3a (patch)
tree415e58ef994bffd93c3dc1b667ab543829670187 /packet-rtcp.c
parentd97ceb43f2ca9c1fa338f5845fe4682e28050c28 (diff)
Make routines that are passed an unsigned integer as their last argument
have an unsigned integer as that argument; this squelches some compiler warnings, and it's the right thing to do in any case. Don't check whether an unsigned integer value is > 0 - that's the same as checking whether it's != 0. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3898 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rtcp.c')
-rw-r--r--packet-rtcp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/packet-rtcp.c b/packet-rtcp.c
index c0ace87c3b..206118c588 100644
--- a/packet-rtcp.c
+++ b/packet-rtcp.c
@@ -1,6 +1,6 @@
/* packet-rtcp.c
*
- * $Id: packet-rtcp.c,v 1.19 2001/08/18 09:27:06 guy Exp $
+ * $Id: packet-rtcp.c,v 1.20 2001/09/03 08:10:46 guy Exp $
*
* Routines for RTCP dissection
* RTCP = Real-time Transport Control Protocol
@@ -369,7 +369,7 @@ dissect_rtcp_app( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
static int
dissect_rtcp_bye( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
- int count )
+ unsigned int count )
{
unsigned int chunk = 1;
unsigned int reason_length = 0;
@@ -401,7 +401,7 @@ dissect_rtcp_bye( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
static int
dissect_rtcp_sdes( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
- int count )
+ unsigned int count )
{
unsigned int chunk = 1;
proto_item *sdes_item;
@@ -506,7 +506,7 @@ dissect_rtcp_sdes( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
static int
dissect_rtcp_rr( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
- int count )
+ unsigned int count )
{
unsigned int counter = 1;
proto_tree *ssrc_tree = (proto_tree*) NULL;
@@ -579,7 +579,7 @@ dissect_rtcp_rr( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
static int
dissect_rtcp_sr( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
- int count )
+ unsigned int count )
{
#if 0
gchar buff[ NTP_TS_SIZE ];
@@ -613,7 +613,7 @@ dissect_rtcp_sr( tvbuff_t *tvb, int offset, frame_data *fd, proto_tree *tree,
offset += 4;
/* The rest of the packet is equal to the RR packet */
- if ( count > 0 )
+ if ( count != 0 )
offset = dissect_rtcp_rr( tvb, offset, fd, tree, count );
return offset;