diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-24 02:11:11 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2009-06-24 02:11:11 +0000 |
commit | 975a16f70693ed2815c8033457de4421448b6a00 (patch) | |
tree | b1d274274c7e87347b1a7bae90a828974377895d /epan/dissectors/packet-cisco-oui.c | |
parent | 92215412c5d561f030f52b27397776f902d037dc (diff) |
From Kovarththanan Rajaratnam:
Cleanup hf_register_info declaration passed to llc_add_oui(). While there,
change the declaration to an array in order to be consistent with the rest
of packet-*.c files.
svn path=/trunk/; revision=28830
Diffstat (limited to 'epan/dissectors/packet-cisco-oui.c')
-rw-r--r-- | epan/dissectors/packet-cisco-oui.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-cisco-oui.c b/epan/dissectors/packet-cisco-oui.c index ed50219ebb..5f9d14d11b 100644 --- a/epan/dissectors/packet-cisco-oui.c +++ b/epan/dissectors/packet-cisco-oui.c @@ -63,12 +63,13 @@ static const value_string cisco_pid_vals[] = { void proto_register_cisco_oui(void) { - static hf_register_info hf = { - &hf_llc_cisco_pid, + static hf_register_info hf[] = { + { &hf_llc_cisco_pid, { "PID", "llc.cisco_pid", FT_UINT16, BASE_HEX, - VALS(cisco_pid_vals), 0x0, "", HFILL }, + VALS(cisco_pid_vals), 0x0, NULL, HFILL } + } }; - llc_add_oui(OUI_CISCO, "llc.cisco_pid", "Cisco OUI PID", &hf); + llc_add_oui(OUI_CISCO, "llc.cisco_pid", "Cisco OUI PID", hf); } |