diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-11-26 04:31:40 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-11-26 04:31:40 +0000 |
commit | 6dc3290d68e611f8176c511b54824db5b401c305 (patch) | |
tree | 8a4aa3acd0ed97aeda3b9a9a11d41acda8119f11 /epan/dissectors/packet-ip.c | |
parent | d51167076a4fb2ecc90634969849b7165d69cbde (diff) |
Add a few casts to try to make the buildbots happy.
svn path=/trunk/; revision=40007
Diffstat (limited to 'epan/dissectors/packet-ip.c')
-rw-r--r-- | epan/dissectors/packet-ip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c index 450d00c2a6..8464ede0cc 100644 --- a/epan/dissectors/packet-ip.c +++ b/epan/dissectors/packet-ip.c @@ -685,7 +685,7 @@ dissect_ipopt_security(const ip_tcp_opt *optp, tvbuff_t *tvb, int offset, field_tree = proto_item_add_subtree(tf, *optp->subtree_index); dissect_ipopt_type(tvb, offset, field_tree); tf = proto_tree_add_item(field_tree, hf_ip_opt_len, tvb, offset + 1, 1, ENC_NA); - if (optlen != optp->optlen) + if (optlen != (guint)optp->optlen) expert_add_info_format(pinfo, tf, PI_PROTOCOL, PI_WARN, "Invalid length for option"); offset += 2; @@ -1141,7 +1141,7 @@ dissect_ipopt_sid(const ip_tcp_opt *optp, tvbuff_t *tvb, int offset, field_tree = proto_item_add_subtree(tf, *optp->subtree_index); dissect_ipopt_type(tvb, offset, field_tree); tf = proto_tree_add_item(field_tree, hf_ip_opt_len, tvb, offset + 1, 1, ENC_NA); - if (optlen != optp->optlen) + if (optlen != (guint)optp->optlen) expert_add_info_format(pinfo, tf, PI_PROTOCOL, PI_WARN, "Invalid length for option"); proto_tree_add_item(field_tree, hf_ip_opt_sid, tvb, offset + 2, 2, ENC_BIG_ENDIAN); @@ -1247,7 +1247,7 @@ dissect_ipopt_ra(const ip_tcp_opt *optp, tvbuff_t *tvb, int offset, field_tree = proto_item_add_subtree(tf, *optp->subtree_index); dissect_ipopt_type(tvb, offset, field_tree); tf = proto_tree_add_item(field_tree, hf_ip_opt_len, tvb, offset + 1, 1, ENC_NA); - if (optlen != optp->optlen) + if (optlen != (guint)optp->optlen) expert_add_info_format(pinfo, tf, PI_PROTOCOL, PI_WARN, "Invalid length for option"); proto_tree_add_item(field_tree, hf_ip_opt_ra, tvb, offset + 2, 2, ENC_BIG_ENDIAN); @@ -1307,7 +1307,7 @@ dissect_ipopt_qs(const ip_tcp_opt *optp, tvbuff_t *tvb, int offset, field_tree = proto_item_add_subtree(tf, *optp->subtree_index); dissect_ipopt_type(tvb, offset, field_tree); ti = proto_tree_add_item(field_tree, hf_ip_opt_len, tvb, offset + 1, 1, ENC_NA); - if (optlen != optp->optlen) + if (optlen != (guint)optp->optlen) expert_add_info_format(pinfo, ti, PI_PROTOCOL, PI_WARN, "Invalid length for option"); proto_tree_add_item(field_tree, hf_ip_opt_qs_func, tvb, offset + 2, 1, ENC_NA); |