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_server.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_server.c')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 00ad005bd..c49e4953a 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -273,7 +273,7 @@ server_reschedule (struct Plugin *plugin, struct MHD_Daemon *server, int now) | |||
273 | * @param client clien | 273 | * @param client clien |
274 | * @param message the message to be forwarded to transport service | 274 | * @param message the message to be forwarded to transport service |
275 | */ | 275 | */ |
276 | static void | 276 | static int |
277 | server_receive_mst_cb (void *cls, void *client, | 277 | server_receive_mst_cb (void *cls, void *client, |
278 | const struct GNUNET_MessageHeader *message) | 278 | const struct GNUNET_MessageHeader *message) |
279 | { | 279 | { |
@@ -281,7 +281,7 @@ server_receive_mst_cb (void *cls, void *client, | |||
281 | 281 | ||
282 | GNUNET_assert (NULL != p); | 282 | GNUNET_assert (NULL != p); |
283 | if (GNUNET_NO == exist_session(p, s)) | 283 | if (GNUNET_NO == exist_session(p, s)) |
284 | return; | 284 | return GNUNET_OK; |
285 | 285 | ||
286 | struct Plugin *plugin = s->plugin; | 286 | struct Plugin *plugin = s->plugin; |
287 | struct GNUNET_TIME_Relative delay; | 287 | struct GNUNET_TIME_Relative delay; |
@@ -299,6 +299,7 @@ server_receive_mst_cb (void *cls, void *client, | |||
299 | http_plugin_address_to_string (NULL, s->addr, s->addrlen), | 299 | http_plugin_address_to_string (NULL, s->addr, s->addrlen), |
300 | delay); | 300 | delay); |
301 | } | 301 | } |
302 | return GNUNET_OK; | ||
302 | } | 303 | } |
303 | 304 | ||
304 | /** | 305 | /** |