gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r16433 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r16433 - gnunet/src/transport
Date: Wed, 10 Aug 2011 09:56:16 +0200

Author: toelke
Date: 2011-08-10 09:56:16 +0200 (Wed, 10 Aug 2011)
New Revision: 16433

Modified:
   gnunet/src/transport/plugin_transport_wlan.c
Log:
cast

Modified: gnunet/src/transport/plugin_transport_wlan.c
===================================================================
--- gnunet/src/transport/plugin_transport_wlan.c        2011-08-09 12:14:07 UTC 
(rev 16432)
+++ gnunet/src/transport/plugin_transport_wlan.c        2011-08-10 07:56:16 UTC 
(rev 16433)
@@ -1356,7 +1356,7 @@
   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 @@
   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);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]