From 2ca5a371ce5b8605bfd579e59c3ed8da493262ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20T=C3=B6lke?= Date: Wed, 10 Aug 2011 07:56:16 +0000 Subject: [PATCH] cast --- src/transport/plugin_transport_wlan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 2f32b53c2..80b6f2d6f 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c @@ -1356,7 +1356,7 @@ send_hello_beacon(struct Plugin * plugin) const struct GNUNET_MessageHeader *hello; hello = plugin->env->get_our_hello (); - hallo_size = GNUNET_HELLO_size(hello); + hallo_size = GNUNET_HELLO_size((struct GNUNET_HELLO_Message*)hello); GNUNET_assert(sizeof(struct WlanHeader) + hallo_size <= WLAN_MTU); size = sizeof(struct GNUNET_MessageHeader) + sizeof(struct Radiotap_Send) + sizeof(struct ieee80211_frame) + sizeof(struct GNUNET_MessageHeader) @@ -1372,7 +1372,7 @@ send_hello_beacon(struct Plugin * plugin) getWlanHeader(ieeewlanheader, &bc_all_mac, plugin, size); msgheader2 = (struct GNUNET_MessageHeader*) &ieeewlanheader[1]; - msgheader2->size = htons(GNUNET_HELLO_size(hello) + msgheader2->size = htons(GNUNET_HELLO_size((struct GNUNET_HELLO_Message*)hello) + sizeof(struct GNUNET_MessageHeader)); msgheader2->type = htons(GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT); -- 2.25.1