diff options
author | Michael Mann <mmann78@netscape.net> | 2014-07-05 15:25:32 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-07-05 20:36:36 +0000 |
commit | fc63343a4ebebeb594a162c57bd1b17315a6e4d5 (patch) | |
tree | b0f0c8b8e395a99f9fbbf95edad18b1370786e91 /epan/dissectors/packet-opsi.c | |
parent | 3f7725174d2c4122b1d159958a56b8d8b928301b (diff) |
convert to proto_tree_add_subtree[_format]
Change-Id: I8df48b25de784a48a25f0e48aac1e1545ed92c35
Reviewed-on: https://code.wireshark.org/review/2865
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-opsi.c')
-rw-r--r-- | epan/dissectors/packet-opsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-opsi.c b/epan/dissectors/packet-opsi.c index 848f67a03c..dbac25da3a 100644 --- a/epan/dissectors/packet-opsi.c +++ b/epan/dissectors/packet-opsi.c @@ -538,8 +538,8 @@ dissect_attributes(tvbuff_t *tvb, packet_info *pinfo, proto_tree *opsi_tree, int "Unknown attribute (%d)", attribute_type); } else { - ti = proto_tree_add_text(opsi_tree, tvb, offset, attribute_length, "%s (%d)", opsi_attributes[i].tree_text, attribute_type); - ntree = proto_item_add_subtree(ti, *opsi_attributes[i].tree_id); + ntree = proto_tree_add_subtree_format(opsi_tree, tvb, offset, attribute_length, *opsi_attributes[i].tree_id, &ti, + "%s (%d)", opsi_attributes[i].tree_text, attribute_type); proto_tree_add_item(ntree, hf_opsi_attribute_length, tvb, offset+2, 2, ENC_BIG_ENDIAN); opsi_attributes[i].dissect(tvb, pinfo, ntree, ti, opsi_attributes[i].hf_type_attribute, offset, attribute_length); } |