diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-10-09 20:30:18 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-10-09 20:30:18 +0000 |
commit | f678c0fd4972ca28d669db80f8b6468bf32ac3d7 (patch) | |
tree | 814ab421165a6a0655f2aa473f20dfc6d6bdea3f | |
parent | 6ca246c95d4492fc44ccc88dd0826ffd39cfe23f (diff) |
Try to fix
packet-rtpproxy.c:217: warning: comparison between signed and unsigned
svn path=/trunk/; revision=52477
-rw-r--r-- | epan/dissectors/packet-rtpproxy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rtpproxy.c b/epan/dissectors/packet-rtpproxy.c index 9ac08441f9..c9a46a7bf9 100644 --- a/epan/dissectors/packet-rtpproxy.c +++ b/epan/dissectors/packet-rtpproxy.c @@ -197,10 +197,10 @@ static int dissect_rtpproxy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { gboolean has_lf = FALSE; - guint offset = 0; + gint offset = 0; gint new_offset = 0; guint tmp; - guint realsize = 0; + gint realsize = 0; guint8* rawstr; proto_item *ti; proto_tree *rtpproxy_tree; @@ -306,9 +306,9 @@ dissect_rtpproxy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data /* Extract parameters */ /* Parameters should be right after the command and before EOL (in case of Info command) or before whitespace */ - new_offset = (tmp == 'i' ? (gint)(realsize - 1 > offset ? offset + strlen("Ib") : offset + strlen("I")) : tvb_find_guint8(tvb, offset, -1, ' ')); + new_offset = (tmp == 'i' ? (realsize - 1 > offset ? offset + (gint)strlen("Ib") : offset + (gint)strlen("I")) : tvb_find_guint8(tvb, offset, -1, ' ')); - if (new_offset != (gint)offset + 1){ + if (new_offset != offset + 1){ rtpproxy_tree = proto_item_add_subtree(ti, ett_rtpproxy_command); proto_tree_add_item(rtpproxy_tree, hf_rtpproxy_command_parameters, tvb, offset+1, new_offset - (offset+1), ENC_ASCII | ENC_NA); rtpproxy_tree = proto_item_get_parent(ti); |