diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2008-05-08 14:01:31 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2008-05-08 14:01:31 +0000 |
commit | 693291377eacb190b959e9905255005390104f56 (patch) | |
tree | 5bf88cae1957661d21f614c1b4cde4e77e19c0d0 /epan/dissectors/packet-nntp.c | |
parent | 7e40100fb3071f2be6e8e00643b73f352452dcd8 (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.c | 5 |
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. |