aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-12-20 06:30:13 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-12-20 06:30:13 +0000
commit5fbfa6c351a5a3ca5934563647bac856192fd192 (patch)
tree965f6f4cd092d4079c2b5a1e4fe33fed4b6a8389 /plugins
parentf4ef031335dd8237edd111f1254239a19345eb3a (diff)
Fix [-Wmissing-prototypes]
svn path=/trunk/; revision=54280
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ethercat/packet-ecatmb.c15
-rw-r--r--plugins/ethercat/packet-ioraw.c3
2 files changed, 12 insertions, 6 deletions
diff --git a/plugins/ethercat/packet-ecatmb.c b/plugins/ethercat/packet-ecatmb.c
index de4492b1b3..c4597b559e 100644
--- a/plugins/ethercat/packet-ecatmb.c
+++ b/plugins/ethercat/packet-ecatmb.c
@@ -39,6 +39,9 @@
#define BIT2BYTE(x) ((x+7)/8)
#define ENDOF(p) ((p)+1) /* pointer to end of *p */
+void proto_register_ecat_mailbox(void);
+void proto_reg_handoff_ecat_mailbox(void);
+
static dissector_handle_t eth_handle;
static dissector_handle_t ams_handle;
@@ -258,32 +261,32 @@ void init_mbx_header(PETHERCAT_MBOX_HEADER pMbox, tvbuff_t *tvb, gint offset)
pMbox->aControlUnion.Control = tvb_get_letohs(tvb, offset);
}
-void init_eoe_header(PETHERCAT_EOE_HEADER pEoE, tvbuff_t *tvb, gint offset)
+static void init_eoe_header(PETHERCAT_EOE_HEADER pEoE, tvbuff_t *tvb, gint offset)
{
pEoE->anEoeHeaderInfoUnion.Info = tvb_get_letohs(tvb, offset); offset+=(int)sizeof(guint16);
pEoE->anEoeHeaderDataUnion.Result = tvb_get_letohs(tvb, offset);
}
-void init_foe_header(PETHERCAT_FOE_HEADER pFoE, tvbuff_t *tvb, gint offset)
+static void init_foe_header(PETHERCAT_FOE_HEADER pFoE, tvbuff_t *tvb, gint offset)
{
pFoE->OpMode = tvb_get_guint8(tvb, offset++);
pFoE->Reserved1 = tvb_get_guint8(tvb, offset++);
pFoE->aFoeHeaderDataUnion.FileLength = tvb_get_letohl(tvb, offset);
}
-void init_soe_header(PETHERCAT_SOE_HEADER pSoE, tvbuff_t *tvb, gint offset)
+static void init_soe_header(PETHERCAT_SOE_HEADER pSoE, tvbuff_t *tvb, gint offset)
{
pSoE->anSoeHeaderControlUnion.v2.Control = tvb_get_guint8(tvb, offset++);
pSoE->anSoeHeaderControlUnion.v2.Element = tvb_get_guint8(tvb, offset++);
pSoE->anSoeHeaderDataUnion.FragmentsLeft = tvb_get_letohs(tvb, offset);
}
-void init_coe_header(PETHERCAT_COE_HEADER pCoE, tvbuff_t *tvb, gint offset)
+static void init_coe_header(PETHERCAT_COE_HEADER pCoE, tvbuff_t *tvb, gint offset)
{
pCoE->header = tvb_get_letohs(tvb, offset);
}
-void init_sdo_header(PETHERCAT_SDO_HEADER pSdo, tvbuff_t *tvb, gint offset)
+static void init_sdo_header(PETHERCAT_SDO_HEADER pSdo, tvbuff_t *tvb, gint offset)
{
pSdo->anSdoHeaderUnion.CS = tvb_get_guint8(tvb, offset++);
pSdo->Index = tvb_get_letohs(tvb, offset);offset+=(int)sizeof(guint16);
@@ -291,7 +294,7 @@ void init_sdo_header(PETHERCAT_SDO_HEADER pSdo, tvbuff_t *tvb, gint offset)
pSdo->Data = tvb_get_letohl(tvb, offset);
}
-void init_sdo_info_header(PETHERCAT_SDO_INFO_HEADER pInfo, tvbuff_t *tvb, gint offset)
+static void init_sdo_info_header(PETHERCAT_SDO_INFO_HEADER pInfo, tvbuff_t *tvb, gint offset)
{
pInfo->anSdoControlUnion.Control = tvb_get_guint8(tvb, offset++);
pInfo->Reserved = tvb_get_guint8(tvb, offset);
diff --git a/plugins/ethercat/packet-ioraw.c b/plugins/ethercat/packet-ioraw.c
index 94f8bcb378..b04806d8ad 100644
--- a/plugins/ethercat/packet-ioraw.c
+++ b/plugins/ethercat/packet-ioraw.c
@@ -34,6 +34,9 @@
#include "packet-ioraw.h"
+void proto_register_ioraw(void);
+void proto_reg_handoff_ioraw(void);
+
/* Define the ioraw proto */
int proto_ioraw = -1;