aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-25 21:19:54 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-04-25 21:19:54 +0000
commit135dc6e532ea8376f63c5b8150bc8240fcb577d0 (patch)
treef398a6e9f6602539cdce9a4d67efb399f5baae32 /plugins
parenta309dbce7a636d454a6b666e7969cdf356b0fad8 (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 *". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36855 f5534014-38df-0310-8fa8-9805f1628bb7
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,