aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/opcua/opcua.c
diff options
context:
space:
mode:
authorHannes Mezger <hannes.mezger@ascolab.com>2014-06-12 12:22:35 +0200
committerEvan Huus <eapache@gmail.com>2014-06-16 15:47:17 +0000
commit2f369b216fc18624a2e8b2c6bc1da80f964e54d7 (patch)
tree66a1a9848153f07466edde33b4418f3c70a1693d /plugins/opcua/opcua.c
parent0bb0b62ec8580ab48c1e8c3eaa82b9fa255d7a4e (diff)
Cleanup subtree types in opcua plugin
- make ett_opcua_transport static, is only used locally - format code grouping extern ett variables - add subtree variables for encodingmasks of simple types Change-Id: Ia044ca6ca0ff19e940a03d21610db67fe3679b01 Reviewed-on: https://code.wireshark.org/review/2157 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins/opcua/opcua.c')
-rw-r--r--plugins/opcua/opcua.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/opcua/opcua.c b/plugins/opcua/opcua.c
index e728be348f..dc37076b21 100644
--- a/plugins/opcua/opcua.c
+++ b/plugins/opcua/opcua.c
@@ -51,11 +51,12 @@ static range_t *global_tcp_ports_opcua;
/** Official IANA registered port for OPC UA Binary Protocol. */
#define OPCUA_PORT 4840
-/** subtree types */
-gint ett_opcua_transport = -1;
+/** subtree types used in opcua_transport_layer.c */
gint ett_opcua_extensionobject = -1;
gint ett_opcua_nodeid = -1;
+/** subtree types used locally */
+static gint ett_opcua_transport = -1;
static gint ett_opcua_fragment = -1;
static gint ett_opcua_fragments = -1;
@@ -168,9 +169,9 @@ void proto_register_opcua(void)
/** Setup protocol subtree array */
static gint *ett[] =
{
- &ett_opcua_transport,
&ett_opcua_extensionobject,
&ett_opcua_nodeid,
+ &ett_opcua_transport,
&ett_opcua_fragment,
&ett_opcua_fragments
};