aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-13 13:06:01 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-13 13:06:01 +0000
commitf40b9f4d92412da3a1461f16069c8bbb425bd136 (patch)
treea1f9df4553aace1af037e465fe39b0f00a05c116 /src/transport/plugin_transport_http.c
parent86ad1393cdf6c8b37437c330fce25ebfffbc8ffd (diff)
downloadgnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.tar.gz
gnunet-f40b9f4d92412da3a1461f16069c8bbb425bd136.zip
compile
Diffstat (limited to 'src/transport/plugin_transport_http.c')
-rw-r--r--src/transport/plugin_transport_http.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 3f7ff2a40..7e740293b 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -257,15 +257,13 @@ http_plugin_receive (void *cls, const struct GNUNET_PeerIdentity * peer,
257{ 257{
258 struct Session *s = cls; 258 struct Session *s = cls;
259 struct Plugin *plugin = s->plugin; 259 struct Plugin *plugin = s->plugin;
260 struct GNUNET_TRANSPORT_ATS_Information distance[2]; 260 struct GNUNET_TRANSPORT_ATS_Information distance;
261 struct GNUNET_TIME_Relative delay; 261 struct GNUNET_TIME_Relative delay;
262 262
263 distance[0].type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE); 263 distance.type = htonl (GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE);
264 distance[0].value = htonl (1); 264 distance.value = htonl (1);
265 distance[1].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR);
266 distance[1].value = htonl (0);
267 265
268 delay = plugin->env->receive (plugin->env->cls, &s->target, message, (const struct GNUNET_TRANSPORT_ATS_Information*) &distance, 2, s, s->addr, s->addrlen); 266 delay = plugin->env->receive (plugin->env->cls, &s->target, message, (const struct GNUNET_TRANSPORT_ATS_Information*) &distance, 1, s, s->addr, s->addrlen);
269 return delay; 267 return delay;
270} 268}
271 269