diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2010-12-20 18:16:12 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2010-12-20 18:16:12 +0000 |
commit | f64b27c9796559b493fe2efbcc2f548b6bae2446 (patch) | |
tree | 3c5b7de738c2eb14b5a32e717e6bf4b0fa1ac83d /epan | |
parent | b9dd529e9cdd44fe4f405daf94eacfd83bacbcba (diff) |
Fix warnings with format.
svn path=/trunk/; revision=35232
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-pim.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pim.c b/epan/dissectors/packet-pim.c index ccfe4d0abd..7f6fe8e0fa 100644 --- a/epan/dissectors/packet-pim.c +++ b/epan/dissectors/packet-pim.c @@ -87,6 +87,9 @@ static dissector_handle_t ipv6_handle; * NOTE: There is still some doubt that this is THE definitive PIMv1 * specification. Of note, the type1vals entry, { 8, "Mode" }, does * not appear as a valid code in the referenced document above. + * + * This one is likely closer to the last PIMv1 spec: + * http://tools.ietf.org/id/draft-ietf-idmr-pim-spec-02.txt */ static const char * dissect_pimv1_addr(tvbuff_t *tvb, int offset) { @@ -799,12 +802,12 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { case 19: /* DR priority */ proto_tree_add_item(opt_tree, hf_pim_dr_priority, tvb, offset + 4, 4, FALSE); - proto_item_append_text(opt_item, ": %lu", tvb_get_ntohl(tvb, offset + 4)); + proto_item_append_text(opt_item, ": %u", tvb_get_ntohl(tvb, offset + 4)); break; case 20: /* Generation ID */ proto_tree_add_item(opt_tree, hf_pim_generation_id, tvb, offset + 4, 4, FALSE); - proto_item_append_text(opt_item, ": %lu", tvb_get_ntohl(tvb, offset + 4)); + proto_item_append_text(opt_item, ": %u", tvb_get_ntohl(tvb, offset + 4)); break; case 21: /* State Refresh Capable Option */ |