diff options
author | Michael Mann <mmann78@netscape.net> | 2014-06-23 20:39:28 -0400 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-06-24 23:42:13 +0000 |
commit | 29ecd114bfd3ba01ee340ffa084eeeafb886f750 (patch) | |
tree | 7eddcc9b3c8c7d41294be2aaf60c86befbd49a0b /epan/dissectors/packet-clip.c | |
parent | 83da877fffaa3de727809918070dafb4d590e1fd (diff) | |
download | wireshark-29ecd114bfd3ba01ee340ffa084eeeafb886f750.tar.gz |
convert to proto_tree_add_subtree[_format]
Change-Id: I5f573dffabb8685a8e5a334ff2bfb24d9838daa6
Reviewed-on: https://code.wireshark.org/review/2601
Tested-by: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-clip.c')
-rw-r--r-- | epan/dissectors/packet-clip.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-clip.c b/epan/dissectors/packet-clip.c index e34ae4c3b0..8def9fb6df 100644 --- a/epan/dissectors/packet-clip.c +++ b/epan/dissectors/packet-clip.c @@ -50,7 +50,6 @@ static void dissect_clip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { proto_tree *fh_tree; - proto_item *ti; pinfo->current_proto = "CLIP"; @@ -85,8 +84,7 @@ dissect_clip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) for both of those cases, to avoid the headache of having to generate capture-filter code to handle both of those cases. */ if(tree) { - ti = proto_tree_add_text(tree, tvb, 0, 0, "Classical IP frame" ); - fh_tree = proto_item_add_subtree(ti, ett_clip); + fh_tree = proto_tree_add_subtree(tree, tvb, 0, 0, ett_clip, NULL, "Classical IP frame" ); proto_tree_add_text(fh_tree, tvb, 0, 0, "No link information available"); } call_dissector(ip_handle, tvb, pinfo, tree); |