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-iana-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-iana-oui.c')
-rw-r--r-- | epan/dissectors/packet-iana-oui.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/epan/dissectors/packet-iana-oui.c b/epan/dissectors/packet-iana-oui.c index 14a71e05a0..66959fb2d4 100644 --- a/epan/dissectors/packet-iana-oui.c +++ b/epan/dissectors/packet-iana-oui.c @@ -51,11 +51,12 @@ static const value_string iana_pid_vals[] = { void proto_register_iana_oui(void) { - static hf_register_info hf = { - &hf_llc_iana_pid, + static hf_register_info hf[] = { + { &hf_llc_iana_pid, { "PID", "llc.iana_pid", FT_UINT16, BASE_HEX, - VALS(iana_pid_vals), 0x0, "", HFILL }, + VALS(iana_pid_vals), 0x0, NULL, HFILL } + } }; - llc_add_oui(OUI_IANA, "llc.iana_pid", "IANA OUI PID", &hf); + llc_add_oui(OUI_IANA, "llc.iana_pid", "IANA OUI PID", hf); } |