aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-data.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-03-16 08:52:09 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-03-16 08:52:09 +0000
commit5a85b7fed2eb804db57cde3c851a12088cc60ee7 (patch)
tree80e3d37b1fe7dc5176b11794585f29346fbc0477 /epan/dissectors/packet-data.c
parent27744ecc2d9925491e5ef8cc97e41d551efc6a2e (diff)
[-Wmissing-prototypes]
Use explicit casts. svn path=/trunk/; revision=48338
Diffstat (limited to 'epan/dissectors/packet-data.c')
-rw-r--r--epan/dissectors/packet-data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/epan/dissectors/packet-data.c b/epan/dissectors/packet-data.c
index 6e9370a6ea..3b32ec1580 100644
--- a/epan/dissectors/packet-data.c
+++ b/epan/dissectors/packet-data.c
@@ -33,6 +33,8 @@
/* proto_data cannot be static because it's referenced in the
* print routines
*/
+void proto_register_data(void);
+
int proto_data = -1;
static int hf_data_data = -1;
@@ -58,7 +60,7 @@ dissect_data(tvbuff_t *tvb, packet_info *pinfo _U_ , proto_tree *tree)
proto_item *ti;
proto_tree *data_tree;
if (new_pane) {
- guint8 *real_data = tvb_memdup(tvb, 0, bytes);
+ guint8 *real_data = (guint8 *)tvb_memdup(tvb, 0, bytes);
data_tvb = tvb_new_child_real_data(tvb,real_data,bytes,bytes);
tvb_set_free_cb(data_tvb, g_free);
add_new_data_source(pinfo, data_tvb, "Not dissected data bytes");