diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-24 09:35:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-05-24 09:35:37 +0000 |
commit | 101f5787ac60dafa175950fb714c6d4cc4906478 (patch) | |
tree | 711c8042c8b22856b0946d0c819a3520498ac274 /src/transport/plugin_transport_http_client.c | |
parent | 6743123dcc6b37dabf2759f384a7f6ad08a08bec (diff) | |
download | gnunet-101f5787ac60dafa175950fb714c6d4cc4906478.tar.gz gnunet-101f5787ac60dafa175950fb714c6d4cc4906478.zip |
- adding return value to mst callback
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r-- | src/transport/plugin_transport_http_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index cf21a425a..79f70bb6c 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c | |||
@@ -333,7 +333,7 @@ client_disconnect (struct Session *s) | |||
333 | return res; | 333 | return res; |
334 | } | 334 | } |
335 | 335 | ||
336 | static void | 336 | static int |
337 | client_receive_mst_cb (void *cls, void *client, | 337 | client_receive_mst_cb (void *cls, void *client, |
338 | const struct GNUNET_MessageHeader *message) | 338 | const struct GNUNET_MessageHeader *message) |
339 | { | 339 | { |
@@ -343,7 +343,7 @@ client_receive_mst_cb (void *cls, void *client, | |||
343 | if (GNUNET_YES != exist_session(p, s)) | 343 | if (GNUNET_YES != exist_session(p, s)) |
344 | { | 344 | { |
345 | GNUNET_break (0); | 345 | GNUNET_break (0); |
346 | return; | 346 | return GNUNET_OK; |
347 | } | 347 | } |
348 | 348 | ||
349 | delay = http_plugin_receive (s, &s->target, message, s, s->addr, s->addrlen); | 349 | delay = http_plugin_receive (s, &s->target, message, s, s->addr, s->addrlen); |
@@ -359,6 +359,7 @@ client_receive_mst_cb (void *cls, void *client, | |||
359 | GNUNET_i2s (&s->target), GNUNET_a2s (s->addr, s->addrlen), | 359 | GNUNET_i2s (&s->target), GNUNET_a2s (s->addr, s->addrlen), |
360 | delay); | 360 | delay); |
361 | } | 361 | } |
362 | return GNUNET_OK; | ||
362 | } | 363 | } |
363 | 364 | ||
364 | static void | 365 | static void |