diff options
author | Bill Meier <wmeier@newsguy.com> | 2008-05-15 13:22:06 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2008-05-15 13:22:06 +0000 |
commit | b42aec29484650e4d0ec2647ebe8401fffbdef11 (patch) | |
tree | aeaab7555d18e0a660d54e5c5d1881633f974d47 /epan/dissectors/packet-trmac.c | |
parent | b3aa52f5734942c2013c0ba9fd1dc498aa6bc633 (diff) |
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25308
Diffstat (limited to 'epan/dissectors/packet-trmac.c')
-rw-r--r-- | epan/dissectors/packet-trmac.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-trmac.c b/epan/dissectors/packet-trmac.c index 2a2e0d7a6a..b0441f2156 100644 --- a/epan/dissectors/packet-trmac.c +++ b/epan/dissectors/packet-trmac.c @@ -110,7 +110,7 @@ sv_text(tvbuff_t *tvb, int svoff, proto_tree *tree) }; proto_tree *sv_tree; - proto_item *ti; + proto_item *ti, *hidden_item; guchar errors[6]; /* isolating or non-isolating */ @@ -127,7 +127,8 @@ sv_text(tvbuff_t *tvb, int svoff, proto_tree *tree) proto_tree_add_text(tree, tvb, svoff, 1, "Subvector Length: %d bytes", sv_length);*/ - proto_tree_add_uint_hidden(tree, hf_trmac_sv, tvb, svoff+1, 1, tvb_get_guint8(tvb, svoff+1)); + hidden_item = proto_tree_add_uint(tree, hf_trmac_sv, tvb, svoff+1, 1, tvb_get_guint8(tvb, svoff+1)); + PROTO_ITEM_SET_HIDDEN(hidden_item); switch(tvb_get_guint8(tvb, svoff+1)) { case 0x01: /* Beacon Type */ |