aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimax/mac_mgmt_msg_decoder.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-06-22 04:58:08 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-06-22 04:58:08 +0000
commitf8c959dc8c4e46f733dbd4dcc954e6fa3304b248 (patch)
tree1ac2ca9d8478f5fd796c6bf17654b0899faa99f2 /plugins/wimax/mac_mgmt_msg_decoder.c
parent135ca5136ff5a9d79341228ca9e325ccba733214 (diff)
From Kovarththanan Rajaratnam:
Move header field info declarations into function scope. This is the first step. Another patch will be submitted which actually scrubs the header field info declarations (remove empty blurbs, etc.) svn path=/trunk/; revision=28797
Diffstat (limited to 'plugins/wimax/mac_mgmt_msg_decoder.c')
-rw-r--r--plugins/wimax/mac_mgmt_msg_decoder.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/plugins/wimax/mac_mgmt_msg_decoder.c b/plugins/wimax/mac_mgmt_msg_decoder.c
index 5b13d67998..f46fe8d60c 100644
--- a/plugins/wimax/mac_mgmt_msg_decoder.c
+++ b/plugins/wimax/mac_mgmt_msg_decoder.c
@@ -197,30 +197,30 @@ static gint *ett[] =
static gint hf_mac_mgmt_msg_values = -1;
static gint hf_mac_mgmt_msg_unknown_type = -1;
-/* Payload display */
-static hf_register_info hf[] =
+/* Register Wimax Mac Payload Protocol and Dissector */
+void proto_register_mac_mgmt_msg(void)
{
+ /* Payload display */
+ static hf_register_info hf[] =
{
- &hf_mac_mgmt_msg_values,
{
- "Values", "wmx.values",
- FT_BYTES, BASE_HEX, NULL, 0x0,
- "", HFILL
- }
- },
- {
- &hf_mac_mgmt_msg_unknown_type,
+ &hf_mac_mgmt_msg_values,
+ {
+ "Values", "wmx.values",
+ FT_BYTES, BASE_HEX, NULL, 0x0,
+ "", HFILL
+ }
+ },
{
- "Unknown MAC Message Type", "wmx.unknown_type",
- FT_BYTES, BASE_HEX, NULL, 0x0,
- "", HFILL
+ &hf_mac_mgmt_msg_unknown_type,
+ {
+ "Unknown MAC Message Type", "wmx.unknown_type",
+ FT_BYTES, BASE_HEX, NULL, 0x0,
+ "", HFILL
+ }
}
- }
-};
+ };
-/* Register Wimax Mac Payload Protocol and Dissector */
-void proto_register_mac_mgmt_msg(void)
-{
if (proto_mac_mgmt_msg_decoder == -1)
{
proto_mac_mgmt_msg_decoder = proto_wimax;