aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/opcua
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-11-15 06:32:11 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-11-15 06:32:11 +0000
commit171f91db2b8a6e080cbf16784f0e90469e458198 (patch)
treea9e34bc318c093823c5370f546f040fe5935f7af /plugins/opcua
parent23e55c696e7531ef367e7c6025200d115434eb2a (diff)
Try to fix [-Wmissing-prototypes]
svn path=/trunk/; revision=53337
Diffstat (limited to 'plugins/opcua')
-rw-r--r--plugins/opcua/opcua.c2
-rw-r--r--plugins/opcua/opcua_application_layer.c1
-rw-r--r--plugins/opcua/opcua_hfindeces.c2
-rw-r--r--plugins/opcua/opcua_security_layer.c1
-rw-r--r--plugins/opcua/opcua_serviceparser.c1
-rw-r--r--plugins/opcua/opcua_transport_layer.c1
-rw-r--r--plugins/opcua/opcua_transport_layer.h2
7 files changed, 9 insertions, 1 deletions
diff --git a/plugins/opcua/opcua.c b/plugins/opcua/opcua.c
index 8432bf417a..2e0d87003d 100644
--- a/plugins/opcua/opcua.c
+++ b/plugins/opcua/opcua.c
@@ -37,6 +37,8 @@
#include "opcua_simpletypes.h"
#include "opcua_hfindeces.h"
+void proto_register_opcua(void);
+
extern const value_string g_requesttypes[];
extern const int g_NumServices;
diff --git a/plugins/opcua/opcua_application_layer.c b/plugins/opcua/opcua_application_layer.c
index fed712fce9..3ebf95de68 100644
--- a/plugins/opcua/opcua_application_layer.c
+++ b/plugins/opcua/opcua_application_layer.c
@@ -26,6 +26,7 @@
#include <glib.h>
#include <epan/packet.h>
#include "opcua_simpletypes.h"
+#include "opcua_application_layer.h"
/** NodeId encoding mask table */
static const value_string g_nodeidmasks[] = {
diff --git a/plugins/opcua/opcua_hfindeces.c b/plugins/opcua/opcua_hfindeces.c
index 0ad022e67b..0d6e6fadeb 100644
--- a/plugins/opcua/opcua_hfindeces.c
+++ b/plugins/opcua/opcua_hfindeces.c
@@ -26,6 +26,8 @@
#include <glib.h>
#include <epan/packet.h>
+#include "opcua_hfindeces.h"
+
int hf_opcua_AccessLevel = -1;
int hf_opcua_ActualSessionTimeout = -1;
int hf_opcua_AddResults = -1;
diff --git a/plugins/opcua/opcua_security_layer.c b/plugins/opcua/opcua_security_layer.c
index b9cb00425e..7df86068cd 100644
--- a/plugins/opcua/opcua_security_layer.c
+++ b/plugins/opcua/opcua_security_layer.c
@@ -27,6 +27,7 @@
#include <epan/packet.h>
#include "opcua_application_layer.h"
#include "opcua_simpletypes.h"
+#include "opcua_security_layer.h"
#if 0
/** NodeClass enum table */
diff --git a/plugins/opcua/opcua_serviceparser.c b/plugins/opcua/opcua_serviceparser.c
index b431bbb7b8..c6547639ff 100644
--- a/plugins/opcua/opcua_serviceparser.c
+++ b/plugins/opcua/opcua_serviceparser.c
@@ -29,6 +29,7 @@
#include "opcua_enumparser.h"
#include "opcua_simpletypes.h"
#include "opcua_hfindeces.h"
+#include "opcua_serviceparser.h"
gint ett_opcua_FindServersRequest = -1;
void parseFindServersRequest(proto_tree *tree, tvbuff_t *tvb, gint *pOffset)
diff --git a/plugins/opcua/opcua_transport_layer.c b/plugins/opcua/opcua_transport_layer.c
index 09b3735ebe..23a5100bf5 100644
--- a/plugins/opcua/opcua_transport_layer.c
+++ b/plugins/opcua/opcua_transport_layer.c
@@ -28,6 +28,7 @@
#include "opcua_security_layer.h"
#include "opcua_application_layer.h"
#include "opcua_simpletypes.h"
+#include "opcua_transport_layer.h"
void dispatchService(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int ServiceId);
diff --git a/plugins/opcua/opcua_transport_layer.h b/plugins/opcua/opcua_transport_layer.h
index 4ceb14b5ff..869380292c 100644
--- a/plugins/opcua/opcua_transport_layer.h
+++ b/plugins/opcua/opcua_transport_layer.h
@@ -29,5 +29,5 @@ int parseMessage(proto_tree *tree, tvbuff_t *tvb, gint *pOffset);
int parseService(proto_tree *tree, tvbuff_t *tvb, gint *pOffset);
int parseOpenSecureChannel(proto_tree *tree, tvbuff_t *tvb, gint *pOffset);
int parseCloseSecureChannel(proto_tree *tree, tvbuff_t *tvb, gint *pOffset);
-int registerTransportLayerTypes(int proto);
+void registerTransportLayerTypes(int proto);