aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-04-25 21:19:54 +0000
committerGuy Harris <guy@alum.mit.edu>2011-04-25 21:19:54 +0000
commitd6fdc37988ac01a79654df85f3ae74e81733ca4e (patch)
treef398a6e9f6602539cdce9a4d67efb399f5baae32 /plugins
parent1a52f126cd4dd53cfa445e1352d0486ea528cc7b (diff)
More fun with GArrays: cast away some warnings that don't report real
alignment problems and that wouldn't even happen if the "data" member of a GArray were a "void *". svn path=/trunk/; revision=36855
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mate/packet-mate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mate/packet-mate.c b/plugins/mate/packet-mate.c
index 94509452f2..2ed67a57e3 100644
--- a/plugins/mate/packet-mate.c
+++ b/plugins/mate/packet-mate.c
@@ -335,8 +335,8 @@ proto_reg_handoff_mate(void)
if (mc) {
/* XXX: alignment warnings, what do they mean? */
- proto_register_field_array(proto_mate, (hf_register_info*) mc->hfrs->data, mc->hfrs->len );
- proto_register_subtree_array((gint**) mc->ett->data, mc->ett->len);
+ proto_register_field_array(proto_mate, (hf_register_info*)(void *)mc->hfrs->data, mc->hfrs->len );
+ proto_register_subtree_array((gint**)(void*)mc->ett->data, mc->ett->len);
register_init_routine(initialize_mate_runtime);
tap_error = register_tap_listener("frame", &mate_tap_data,