summaryrefslogtreecommitdiff
path: root/plugins/opcua/opcua_security_layer.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/opcua/opcua_security_layer.c
parent135ca5136ff5a9d79341228ca9e325ccba733214 (diff)
downloadwireshark-f8c959dc8c4e46f733dbd4dcc954e6fa3304b248.tar.gz
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/opcua/opcua_security_layer.c')
-rw-r--r--plugins/opcua/opcua_security_layer.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/plugins/opcua/opcua_security_layer.c b/plugins/opcua/opcua_security_layer.c
index 65e82b7e1b..015576c7aa 100644
--- a/plugins/opcua/opcua_security_layer.c
+++ b/plugins/opcua/opcua_security_layer.c
@@ -43,22 +43,21 @@ static int hf_opcua_security_tokenid = -1;
static int hf_opcua_security_seq = -1;
static int hf_opcua_security_rqid = -1;
-static hf_register_info hf[] =
-{
- { &hf_opcua_security_tokenid,
- { "Security Token Id", "security.tokenid", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }
- },
- { &hf_opcua_security_seq,
- { "Security Sequence Number", "security.seq", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }
- },
- { &hf_opcua_security_rqid,
- { "Security RequestId", "security.rqid", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }
- }
-};
-
/** Register security layer types. */
void registerSecurityLayerTypes(int proto)
{
+ static hf_register_info hf[] =
+ {
+ { &hf_opcua_security_tokenid,
+ { "Security Token Id", "security.tokenid", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }
+ },
+ { &hf_opcua_security_seq,
+ { "Security Sequence Number", "security.seq", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }
+ },
+ { &hf_opcua_security_rqid,
+ { "Security RequestId", "security.rqid", FT_UINT32, BASE_DEC, NULL, 0x0, "", HFILL }
+ }
+ };
proto_register_field_array(proto, hf, array_length(hf));
}