aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/ethercat
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-11-19 06:06:38 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-11-19 06:06:38 +0000
commit864431b900d653322fadd148a615d03598f62b24 (patch)
tree194d368659701d458219aa81af7f0ee896e5f2de /plugins/ethercat
parentbfcc63972eaec585105f169927ffe23def39ae2c (diff)
Fix [-Wmissing-prototypes]
svn path=/trunk/; revision=53425
Diffstat (limited to 'plugins/ethercat')
-rw-r--r--plugins/ethercat/packet-ams.c3
-rw-r--r--plugins/ethercat/packet-esl.c6
-rw-r--r--plugins/ethercat/packet-ethercat-datagram.c3
-rw-r--r--plugins/ethercat/packet-ethercat-frame.c3
-rw-r--r--plugins/ethercat/packet-nv.c3
5 files changed, 16 insertions, 2 deletions
diff --git a/plugins/ethercat/packet-ams.c b/plugins/ethercat/packet-ams.c
index ba64d4155c..4b3cab463c 100644
--- a/plugins/ethercat/packet-ams.c
+++ b/plugins/ethercat/packet-ams.c
@@ -34,6 +34,9 @@
#include "packet-ams.h"
+void proto_register_ams(void);
+void proto_reg_handoff_ams(void);
+
/* Define the ams proto */
int proto_ams = -1;
diff --git a/plugins/ethercat/packet-esl.c b/plugins/ethercat/packet-esl.c
index e454ef659f..9b643347cf 100644
--- a/plugins/ethercat/packet-esl.c
+++ b/plugins/ethercat/packet-esl.c
@@ -31,6 +31,8 @@
#include <epan/packet.h>
#include <epan/prefs.h>
+void proto_register_esl(void);
+
#if 0
/* XXX: using bitfields is compiler dependent: See README.developer */
@@ -214,7 +216,7 @@ typedef struct _ref_time_frame_info
static ref_time_frame_info ref_time_frame;
-gboolean is_esl_header(tvbuff_t *tvb, gint offset)
+static gboolean is_esl_header(tvbuff_t *tvb, gint offset)
{
return tvb_get_guint8(tvb, offset) == 0x01 &&
tvb_get_guint8(tvb, offset+1) == 0x01 &&
@@ -224,7 +226,7 @@ gboolean is_esl_header(tvbuff_t *tvb, gint offset)
tvb_get_guint8(tvb, offset+5) == 0x00;
}
-void modify_times(tvbuff_t *tvb, gint offset, packet_info *pinfo)
+static void modify_times(tvbuff_t *tvb, gint offset, packet_info *pinfo)
{
if ( ref_time_frame.fd == NULL )
{
diff --git a/plugins/ethercat/packet-ethercat-datagram.c b/plugins/ethercat/packet-ethercat-datagram.c
index 9299f47417..5204940b3d 100644
--- a/plugins/ethercat/packet-ethercat-datagram.c
+++ b/plugins/ethercat/packet-ethercat-datagram.c
@@ -35,6 +35,9 @@
#include "packet-ethercat-datagram.h"
#include "packet-ecatmb.h"
+void proto_register_ecat(void);
+void proto_reg_handoff_ecat(void);
+
static heur_dissector_list_t heur_subdissector_list;
static dissector_handle_t ecat_mailbox_handle;
diff --git a/plugins/ethercat/packet-ethercat-frame.c b/plugins/ethercat/packet-ethercat-frame.c
index 2956a5fd14..2b1b0559c6 100644
--- a/plugins/ethercat/packet-ethercat-frame.c
+++ b/plugins/ethercat/packet-ethercat-frame.c
@@ -35,6 +35,9 @@
#include "packet-ethercat-frame.h"
+void proto_register_ethercat_frame(void);
+void proto_reg_handoff_ethercat_frame(void);
+
/* Define the Ethercat frame proto */
static int proto_ethercat_frame = -1;
diff --git a/plugins/ethercat/packet-nv.c b/plugins/ethercat/packet-nv.c
index 706315d461..fb74a5f53a 100644
--- a/plugins/ethercat/packet-nv.c
+++ b/plugins/ethercat/packet-nv.c
@@ -34,6 +34,9 @@
#include "packet-nv.h"
+void proto_register_nv(void);
+void proto_reg_handoff_nv(void);
+
/* Define the nv proto */
int proto_nv = -1;