diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-08-13 08:25:21 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-08-13 07:38:09 +0000 |
commit | 38418210e399341960b3440d9619464626322c45 (patch) | |
tree | d1475e4e47cca8fc4f4c520e4f6b0690055a8186 /asn1/snmp/packet-snmp-template.c | |
parent | f59e69489d3cea7e7f6c7b6a4d377201496fdade (diff) |
SNMP: Remove some unused hf field
Change-Id: I33c89d07af6658569df3a9a094e2865e28ed0acb
Reviewed-on: https://code.wireshark.org/review/3569
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'asn1/snmp/packet-snmp-template.c')
-rw-r--r-- | asn1/snmp/packet-snmp-template.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c index 8f3f175fc6..bdf599ea78 100644 --- a/asn1/snmp/packet-snmp-template.c +++ b/asn1/snmp/packet-snmp-template.c @@ -233,9 +233,6 @@ static int hf_snmp_agentid_trailer = -1; #include "packet-snmp-hf.c" -static int hf_smux_version = -1; -static int hf_smux_pdutype = -1; - /* Initialize the subtree pointers */ static gint ett_smux = -1; static gint ett_snmp = -1; @@ -2627,21 +2624,13 @@ void proto_reg_handoff_snmp(void) { void proto_register_smux(void) { - static hf_register_info hf[] = { - { &hf_smux_version, - { "Version", "smux.version", FT_UINT8, BASE_DEC, NULL, - 0x0, NULL, HFILL }}, - { &hf_smux_pdutype, - { "PDU type", "smux.pdutype", FT_UINT8, BASE_DEC, VALS(smux_types), - 0x0, NULL, HFILL }}, - }; static gint *ett[] = { &ett_smux, }; proto_smux = proto_register_protocol("SNMP Multiplex Protocol", "SMUX", "smux"); - proto_register_field_array(proto_smux, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); } |