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-oipf.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-oipf.c')
-rw-r--r-- | epan/dissectors/packet-oipf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-oipf.c b/epan/dissectors/packet-oipf.c index cf0ea556bc..79c3df15d3 100644 --- a/epan/dissectors/packet-oipf.c +++ b/epan/dissectors/packet-oipf.c @@ -78,7 +78,6 @@ static int dissect_oipf_ciplus(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, void *data _U_) { gint msg_len; - proto_item *ti; proto_tree *oipf_ciplus_tree; guint offset = 0; guint8 i, send_datatype_nbr; @@ -91,8 +90,7 @@ dissect_oipf_ciplus(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, voi if (msg_len < 8) return 0; - ti = proto_tree_add_text(tree, tvb, 0, msg_len, "Open IPTV Forum CSPG-CI+"); - oipf_ciplus_tree = proto_item_add_subtree(ti, ett_oipf_ciplus); + oipf_ciplus_tree = proto_tree_add_subtree(tree, tvb, 0, msg_len, ett_oipf_ciplus, NULL, "Open IPTV Forum CSPG-CI+"); proto_tree_add_item(oipf_ciplus_tree, hf_oipf_ciplus_cmd_id, tvb, offset, 1, ENC_BIG_ENDIAN); |