summaryrefslogtreecommitdiff
path: root/epan/dissectors/packet-dsi.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2014-06-24 23:24:14 -0400
committerMichael Mann <mmann78@netscape.net>2014-06-25 16:35:14 +0000
commit888f22de1669e75702c23fe377b1ed166bd89308 (patch)
tree87de06ca92a86a103ab5724da7f8b910422b7afc /epan/dissectors/packet-dsi.c
parent8ac87dccde4544e5397f0d741d2ec9f230971b43 (diff)
downloadwireshark-888f22de1669e75702c23fe377b1ed166bd89308.tar.gz
convert to proto_tree_add_subtree[_format]
Change-Id: I2ea1892b5963cc5578cbdd2b03029ca8424f2267 Reviewed-on: https://code.wireshark.org/review/2640 Tested-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-dsi.c')
-rw-r--r--epan/dissectors/packet-dsi.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/epan/dissectors/packet-dsi.c b/epan/dissectors/packet-dsi.c
index 3271105fec..2ed4c808f9 100644
--- a/epan/dissectors/packet-dsi.c
+++ b/epan/dissectors/packet-dsi.c
@@ -160,12 +160,10 @@ static gint
dissect_dsi_open_session(tvbuff_t *tvb, proto_tree *dsi_tree, gint offset, gint dsi_length)
{
proto_tree *tree;
- proto_item *ti;
guint8 type;
guint8 len;
- ti = proto_tree_add_text(dsi_tree, tvb, offset, -1, "Open Session");
- tree = proto_item_add_subtree(ti, ett_dsi_open);
+ tree = proto_tree_add_subtree(dsi_tree, tvb, offset, -1, ett_dsi_open, NULL, "Open Session");
while( dsi_length >2 ) {
@@ -207,8 +205,7 @@ dissect_dsi_attention(tvbuff_t *tvb, proto_tree *dsi_tree, gint offset)
return offset;
flag = tvb_get_ntohs(tvb, offset);
- ti = proto_tree_add_text(dsi_tree, tvb, offset, -1, "Attention");
- tree = proto_item_add_subtree(ti, ett_dsi_attn);
+ tree = proto_tree_add_subtree(dsi_tree, tvb, offset, -1, ett_dsi_attn, NULL, "Attention");
ti = proto_tree_add_item(tree, hf_dsi_attn_flag, tvb, offset, 2, ENC_BIG_ENDIAN);
tree = proto_item_add_subtree(ti, ett_dsi_attn_flag);