aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-enttec.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-17 09:11:21 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-17 09:11:21 +0000
commit2e52e2ac997ca58caabee3270b5a6c3f96159ff0 (patch)
treef91b54117a59dee1f23c74e86b53be24a21825bb /epan/dissectors/packet-enttec.c
parente8c305fd3b957b68388653ad1029a253c90b9a53 (diff)
[-Wmissing-prototypes]
Use explicit casts. svn path=/trunk/; revision=48347
Diffstat (limited to 'epan/dissectors/packet-enttec.c')
-rw-r--r--epan/dissectors/packet-enttec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-enttec.c b/epan/dissectors/packet-enttec.c
index 7b675d91f8..f49dfbe034 100644
--- a/epan/dissectors/packet-enttec.c
+++ b/epan/dissectors/packet-enttec.c
@@ -75,6 +75,7 @@ static const value_string enttec_data_type_vals[] = {
{ 0, NULL }
};
+void proto_register_enttec(void);
void proto_reg_handoff_enttec(void);
/* Define the enttec proto */
@@ -190,8 +191,8 @@ dissect_enttec_dmx_data(tvbuff_t *tvb, guint offset, proto_tree *tree)
"%3u: %s"
};
- guint8 *dmx_data = ep_alloc(512 * sizeof(guint8));
- guint16 *dmx_data_offset = ep_alloc(513 * sizeof(guint16)); /* 1 extra for last offset */
+ guint8 *dmx_data = (guint8 *)ep_alloc(512 * sizeof(guint8));
+ guint16 *dmx_data_offset = (guint16 *)ep_alloc(513 * sizeof(guint16)); /* 1 extra for last offset */
emem_strbuf_t *dmx_epstr;
proto_tree *hi,*si;