aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rtcp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-09-03 08:10:46 +0000
committerGuy Harris <guy@alum.mit.edu>2001-09-03 08:10:46 +0000
commit24ddb0198b9528ade69d7668e7d2189f15df622b (patch)
tree415e58ef994bffd93c3dc1b667ab543829670187 /packet-rtcp.c
parentf6c33914feeed4c1f3b87e18fbce684bd98200c5 (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. svn path=/trunk/; revision=3898
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;