diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-16 03:26:57 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-02-16 03:26:57 +0000 |
commit | feeafce765e85f5673ab52d1f0f0a4054b295c82 (patch) | |
tree | 976d22f9f30ecac5903f378c7b3afe98bad14c93 /epan/dissectors/packet-dtp.c | |
parent | 66b6391c6b1da74e865f17e785daf99e3fd258e8 (diff) |
Use tvb_ether_to_str().
There's no need to pass the result of tvb_get_ptr() as the 'value' in
proto_tree_add_*(): just use proto_tree_add_item().
svn path=/trunk/; revision=35962
Diffstat (limited to 'epan/dissectors/packet-dtp.c')
-rw-r--r-- | epan/dissectors/packet-dtp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dtp.c b/epan/dissectors/packet-dtp.c index ee545a0bd0..d52fa7f0a7 100644 --- a/epan/dissectors/packet-dtp.c +++ b/epan/dissectors/packet-dtp.c @@ -174,11 +174,9 @@ dissect_dtp_tlv(tvbuff_t *tvb, int offset, int length, case TYPE_NEIGHBOR: if (length == 6) { - const guint8 *macptr=tvb_get_ptr(tvb,offset,length); - proto_item_set_text(ti, "Neighbor: %s", - ether_to_str(macptr)); /* XXX - resolve? */ - proto_tree_add_ether(tree, hf_dtp_some_mac, tvb, offset,length,macptr); + tvb_ether_to_str(tvb, offset)); /* XXX - resolve? */ + proto_tree_add_item(tree, hf_dtp_some_mac, tvb, offset, length, ENC_NA); } else { proto_item_set_text(ti, "Neighbor: Bad length %u", |