aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-01-21 14:25:17 +0000
committerNathan S. Evans <evans@in.tum.de>2010-01-21 14:25:17 +0000
commit6fecbfcd3ccd328abb159ffb832732ff42419611 (patch)
tree5ef904649486949f1f1015c64d0ceb23f1f3d1e6 /src/transport
parent654f0d27c36cf7cd2c0ee3a0c1c3bdcd0f4c240c (diff)
downloadgnunet-6fecbfcd3ccd328abb159ffb832732ff42419611.tar.gz
gnunet-6fecbfcd3ccd328abb159ffb832732ff42419611.zip
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/plugin_transport_tcp.c5
-rw-r--r--src/transport/plugin_transport_udp.c2
-rw-r--r--src/transport/transport_api.c3
3 files changed, 5 insertions, 5 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index aef5d0b39..23ed867b7 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -516,8 +516,7 @@ disconnect_session (struct Session *session)
516 know about this one, so we need to 516 know about this one, so we need to
517 notify transport service about disconnect */ 517 notify transport service about disconnect */
518 session->plugin->env->receive (session->plugin->env->cls, 518 session->plugin->env->receive (session->plugin->env->cls,
519 NULL, 519 &session->target, NULL,
520 &session->target,
521 1, 520 1,
522 session->connect_addr, 521 session->connect_addr,
523 session->connect_alen); 522 session->connect_alen);
@@ -1093,7 +1092,7 @@ handle_tcp_data (void *cls,
1093 (unsigned int) msize, 1092 (unsigned int) msize,
1094 (unsigned int) ntohs (msg->type)); 1093 (unsigned int) ntohs (msg->type));
1095#endif 1094#endif
1096 plugin->env->receive (plugin->env->cls, message, &session->target, 1, 1095 plugin->env->receive (plugin->env->cls, &session->target, message, 1,
1097 session->connect_addr, 1096 session->connect_addr,
1098 session->connect_alen); 1097 session->connect_alen);
1099 /* update bandwidth used */ 1098 /* update bandwidth used */
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index e9e243969..4520a71f9 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -331,7 +331,7 @@ udp_plugin_select (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
331 ntohs (hdr->type)); 331 ntohs (hdr->type));
332#endif 332#endif
333 plugin->env->receive (plugin->env->cls, 333 plugin->env->receive (plugin->env->cls,
334 &msg->header, sender, UDP_DIRECT_DISTANCE, (char *)&addr, fromlen); 334 sender, &msg->header, UDP_DIRECT_DISTANCE, (char *)&addr, fromlen);
335 335
336 GNUNET_free (sender); 336 GNUNET_free (sender);
337 GNUNET_free (buf); 337 GNUNET_free (buf);
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c
index 8bf2cf621..998aded45 100644
--- a/src/transport/transport_api.c
+++ b/src/transport/transport_api.c
@@ -778,6 +778,7 @@ GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle,
778 * A "get_hello" request has timed out. Signal the client 778 * A "get_hello" request has timed out. Signal the client
779 * and clean up. 779 * and clean up.
780 */ 780 */
781#if 0
781static void 782static void
782hello_wait_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 783hello_wait_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
783{ 784{
@@ -821,7 +822,7 @@ hello_wait_timeout (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
821 hwl->rec (hwl->rec_cls, NULL); 822 hwl->rec (hwl->rec_cls, NULL);
822 GNUNET_free (hwl); 823 GNUNET_free (hwl);
823} 824}
824 825#endif
825 826
826/** 827/**
827 * Obtain the HELLO message for this peer. 828 * Obtain the HELLO message for this peer.