aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smtp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-05-14 01:47:41 +0000
committerBill Meier <wmeier@newsguy.com>2008-05-14 01:47:41 +0000
commit44af6ef887427d09d1f3e0465b964fd1c4395909 (patch)
treeb536e8eee183ff80de1e82a6513650d3c4892826 /epan/dissectors/packet-smtp.c
parentcae5293711372f6a3a72517c122150242e983330 (diff)
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25290
Diffstat (limited to 'epan/dissectors/packet-smtp.c')
-rw-r--r--epan/dissectors/packet-smtp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-smtp.c b/epan/dissectors/packet-smtp.c
index a3d25e4fa2..0c1ba215b4 100644
--- a/epan/dissectors/packet-smtp.c
+++ b/epan/dissectors/packet-smtp.c
@@ -160,7 +160,7 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
struct smtp_proto_data *frame_data;
proto_tree *smtp_tree;
proto_tree *cmdresp_tree;
- proto_item *ti;
+ proto_item *ti, *hidden_item;
int offset = 0;
int request = 0;
conversation_t *conversation;
@@ -644,8 +644,9 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
cmdlen = 4;
else
cmdlen = linelen;
- proto_tree_add_boolean_hidden(smtp_tree, hf_smtp_req, tvb,
+ hidden_item = proto_tree_add_boolean(smtp_tree, hf_smtp_req, tvb,
0, 0, TRUE);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
/*
* Put the command line into the protocol tree.
*/
@@ -706,8 +707,9 @@ dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
* Process the response, a line at a time, until we hit a line
* that doesn't have a continuation indication on it.
*/
- proto_tree_add_boolean_hidden(smtp_tree, hf_smtp_rsp, tvb,
+ hidden_item = proto_tree_add_boolean(smtp_tree, hf_smtp_rsp, tvb,
0, 0, TRUE);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
while (tvb_offset_exists(tvb, offset)) {