summaryrefslogtreecommitdiff
path: root/asn1/h450/packet-h450-template.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-05-21 05:41:39 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-05-21 05:41:39 +0000
commit45b3155321b9c080a7bd27c262a132d4eef7a873 (patch)
tree1f9bc7a3f013fc8d55588e5bdd0414a03bb70406 /asn1/h450/packet-h450-template.c
parentaaeee9accaddf89263d40fbe20a57affecbeefc4 (diff)
downloadwireshark-45b3155321b9c080a7bd27c262a132d4eef7a873.tar.gz
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25335
Diffstat (limited to 'asn1/h450/packet-h450-template.c')
-rw-r--r--asn1/h450/packet-h450-template.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/asn1/h450/packet-h450-template.c b/asn1/h450/packet-h450-template.c
index c6d2ca76b2..2c8420dd95 100644
--- a/asn1/h450/packet-h450-template.c
+++ b/asn1/h450/packet-h450-template.c
@@ -120,6 +120,7 @@ static const h450_err_t *get_err(gint32 errcode) {
/*--- dissect_h450_arg ------------------------------------------------------*/
static int
dissect_h450_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
+ proto_item *hidden_item;
int offset;
rose_ctx_t *rctx;
gint32 opcode;
@@ -138,7 +139,8 @@ dissect_h450_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
if (!op_ptr)
return offset;
- proto_tree_add_uint_hidden(tree, hf_h450_operation, tvb, 0, 0, opcode);
+ hidden_item = proto_tree_add_uint(tree, hf_h450_operation, tvb, 0, 0, opcode);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
p = match_strval(opcode, VALS(h450_str_operation));
if (p) {
proto_item_append_text(rctx->d.code_item, " - %s", p);
@@ -160,6 +162,7 @@ dissect_h450_arg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/*--- dissect_h450_res ------------------------------------------------------*/
static int
dissect_h450_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
+ proto_item *hidden_item;
int offset;
rose_ctx_t *rctx;
gint32 opcode;
@@ -178,7 +181,8 @@ dissect_h450_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
if (!op_ptr)
return offset;
- proto_tree_add_uint_hidden(tree, hf_h450_operation, tvb, 0, 0, opcode);
+ hidden_item = proto_tree_add_uint(tree, hf_h450_operation, tvb, 0, 0, opcode);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
p = match_strval(opcode, VALS(h450_str_operation));
if (p) {
proto_item_append_text(rctx->d.code_item, " - %s", p);
@@ -200,6 +204,7 @@ dissect_h450_res(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/*--- dissect_h450_err ------------------------------------------------------*/
static int
dissect_h450_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
+ proto_item *hidden_item;
int offset;
rose_ctx_t *rctx;
gint32 errcode;
@@ -218,7 +223,8 @@ dissect_h450_err(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
if (!err_ptr)
return offset;
- proto_tree_add_uint_hidden(tree, hf_h450_error, tvb, 0, 0, errcode);
+ hidden_item = proto_tree_add_uint(tree, hf_h450_error, tvb, 0, 0, errcode);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
p = match_strval(errcode, VALS(h450_str_error));
if (p) {
proto_item_append_text(rctx->d.code_item, " - %s", p);