aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-nntp.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2008-05-08 14:01:31 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2008-05-08 14:01:31 +0000
commit693291377eacb190b959e9905255005390104f56 (patch)
tree5bf88cae1957661d21f614c1b4cde4e77e19c0d0 /epan/dissectors/packet-nntp.c
parent7e40100fb3071f2be6e8e00643b73f352452dcd8 (diff)
Stop using deprecated functions identified by checkAPIs script.
svn path=/trunk/; revision=25258
Diffstat (limited to 'epan/dissectors/packet-nntp.c')
-rw-r--r--epan/dissectors/packet-nntp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-nntp.c b/epan/dissectors/packet-nntp.c
index 9c3cd64861..64f3347d14 100644
--- a/epan/dissectors/packet-nntp.c
+++ b/epan/dissectors/packet-nntp.c
@@ -81,12 +81,13 @@ dissect_nntp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
nntp_tree = proto_item_add_subtree(ti, ett_nntp);
if (pinfo->match_port == pinfo->destport) {
- proto_tree_add_boolean_hidden(nntp_tree,
+ ti = proto_tree_add_boolean(nntp_tree,
hf_nntp_request, tvb, 0, 0, TRUE);
} else {
- proto_tree_add_boolean_hidden(nntp_tree,
+ ti = proto_tree_add_boolean(nntp_tree,
hf_nntp_response, tvb, 0, 0, TRUE);
}
+ PROTO_ITEM_SET_HIDDEN(ti);
/*
* Show the request or response as text, a line at a time.