diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-07-23 20:35:28 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2008-07-23 20:35:28 +0000 |
commit | f97023f302762d9461508074d463c101aa758c98 (patch) | |
tree | 08f2ecfcd91983b4ee6ddd931fb7a21598b8153a /epan | |
parent | d5aff45ab840996b4e0a8d03aaed4db2cb8287f7 (diff) |
Don't use proto_tree_add_uint_hidden() any more: it's deprecated.
svn path=/trunk/; revision=25807
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-ncp2222.inc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/epan/dissectors/packet-ncp2222.inc b/epan/dissectors/packet-ncp2222.inc index 640b27beaa..7c6e8119a6 100644 --- a/epan/dissectors/packet-ncp2222.inc +++ b/epan/dissectors/packet-ncp2222.inc @@ -12159,17 +12159,19 @@ dissect_ping_req(tvbuff_t *tvb, packet_info *pinfo, length_remaining = tvb_reported_length_remaining(tvb, 8); if (length_remaining >= 8) { + proto_item *pi; + ping_version = tvb_get_letohl(tvb, 8); proto_tree_add_uint(ncp_tree, hf_nds_ping_version, tvb, 8, - 4, ping_version); + 4, ping_version); nds_flags = tvb_get_letohl(tvb, 12); if (request_value){ - request_value->nds_request_verb = 0xf0; - request_value->req_nds_flags = nds_flags; - } - proto_tree_add_uint_hidden(ncp_tree, hf_ncp_nds_verb, tvb, 0, 0, - 240); + request_value->nds_request_verb = 0xf0; + request_value->req_nds_flags = nds_flags; + } + pi = proto_tree_add_uint(ncp_tree, hf_ncp_nds_verb, tvb, 0, 0, 240); + PROTO_ITEM_SET_HIDDEN(pi); pvalue.vvalue = tvb_get_letohs(tvb, 12); pvalue.vtype = VTYPE_BITFIELD; |