From f8c959dc8c4e46f733dbd4dcc954e6fa3304b248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Mon, 22 Jun 2009 04:58:08 +0000 Subject: 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 --- plugins/wimax/wimax_pdu_decoder.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'plugins/wimax/wimax_pdu_decoder.c') diff --git a/plugins/wimax/wimax_pdu_decoder.c b/plugins/wimax/wimax_pdu_decoder.c index ad75826914..98121d5bda 100644 --- a/plugins/wimax/wimax_pdu_decoder.c +++ b/plugins/wimax/wimax_pdu_decoder.c @@ -77,19 +77,6 @@ static gint ett_wimax_pdu_decoder = -1; static int hf_wimax_value_bytes = -1; -/* PDU display */ -static hf_register_info hf[] = -{ - { - &hf_wimax_value_bytes, - { - "Values", "wmx.pdu.value", - FT_BYTES, BASE_HEX, NULL, 0x0, - "", HFILL - } - }, -}; - /* Setup protocol subtree array */ static gint *ett[] = { @@ -99,6 +86,19 @@ static gint *ett[] = /* Register Wimax PDU Burst Protocol */ void proto_register_wimax_pdu(void) { + /* PDU display */ + static hf_register_info hf[] = + { + { + &hf_wimax_value_bytes, + { + "Values", "wmx.pdu.value", + FT_BYTES, BASE_HEX, NULL, 0x0, + "", HFILL + } + }, + }; + if (proto_wimax_pdu_decoder == -1) { proto_wimax_pdu_decoder = proto_wimax; -- cgit v1.2.3