cast
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 10 Aug 2011 07:56:16 +0000 (07:56 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 10 Aug 2011 07:56:16 +0000 (07:56 +0000)
src/transport/plugin_transport_wlan.c

index 2f32b53c2803ce17a7845e1692eb9cf27f0581c4..80b6f2d6f514dcc4dac73b0751010cb4f9a64103 100644 (file)
@@ -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);