diff options
author | David Brodski <david@brodski.eu> | 2011-02-01 22:31:57 +0000 |
---|---|---|
committer | David Brodski <david@brodski.eu> | 2011-02-01 22:31:57 +0000 |
commit | ce676912837b36a8f73a062ad5fc184f653e154a (patch) | |
tree | c1f0389dd0df87ba0847ba191b4d3241ee2559ce /src/transport/plugin_transport_wlan.c | |
parent | 6559025e6703aea128f354bc4a1d8d8d15790c6d (diff) | |
download | gnunet-ce676912837b36a8f73a062ad5fc184f653e154a.tar.gz gnunet-ce676912837b36a8f73a062ad5fc184f653e154a.zip |
two errors fixed in wlan
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 5c9144a2f..02e6964d9 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -1050,7 +1050,7 @@ do_transmit(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
1050 | uint copyoffset = 0; | 1050 | uint copyoffset = 0; |
1051 | struct AckQueue * akt = NULL; | 1051 | struct AckQueue * akt = NULL; |
1052 | 1052 | ||
1053 | #if 0 | 1053 | #if 1 |
1054 | struct GNUNET_MessageHeader * msgheader2 = NULL; | 1054 | struct GNUNET_MessageHeader * msgheader2 = NULL; |
1055 | 1055 | ||
1056 | //test if a "hello-beacon" has to be send | 1056 | //test if a "hello-beacon" has to be send |
@@ -1922,7 +1922,7 @@ wlan_data_helper(void *cls, void * client, const struct GNUNET_MessageHeader * h | |||
1922 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | 1922 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, |
1923 | "After Information\n"); | 1923 | "After Information\n"); |
1924 | #endif | 1924 | #endif |
1925 | plugin->env->receive(plugin, &(session->target), temp_hdr, | 1925 | plugin->env->receive(plugin->env, &(session->target), temp_hdr, |
1926 | (const struct GNUNET_TRANSPORT_ATS_Information *) &distance, 2, | 1926 | (const struct GNUNET_TRANSPORT_ATS_Information *) &distance, 2, |
1927 | session, session->addr, sizeof(session->addr)); | 1927 | session, session->addr, sizeof(session->addr)); |
1928 | #if DEBUG_wlan | 1928 | #if DEBUG_wlan |
@@ -2140,7 +2140,7 @@ wlan_process_helper (void *cls, | |||
2140 | temp_hdr = (struct GNUNET_MessageHeader *) &wlanIeeeHeader[1]; | 2140 | temp_hdr = (struct GNUNET_MessageHeader *) &wlanIeeeHeader[1]; |
2141 | while (pos < hdr->size) | 2141 | while (pos < hdr->size) |
2142 | { | 2142 | { |
2143 | wlan_data_helper(plugin, &session_light, temp_hdr); | 2143 | wlan_data_helper(plugin, session_light, temp_hdr); |
2144 | pos += temp_hdr->size + sizeof(struct GNUNET_MessageHeader); | 2144 | pos += temp_hdr->size + sizeof(struct GNUNET_MessageHeader); |
2145 | } | 2145 | } |
2146 | } | 2146 | } |