diff options
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 9784d61aa..3b4be4634 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c | |||
@@ -500,7 +500,7 @@ static GNUNET_PEER_Id myid; | |||
500 | */ | 500 | */ |
501 | size_t feed_data_to_core (void *cls, size_t size, void *buf) { | 501 | size_t feed_data_to_core (void *cls, size_t size, void *buf) { |
502 | size_t size_used; | 502 | size_t size_used; |
503 | PeerInfo *peer_info; | 503 | struct PeerInfo *peer_info; |
504 | 504 | ||
505 | if(0 == size && NULL == buf) { | 505 | if(0 == size && NULL == buf) { |
506 | // FIXME retry? cancel? | 506 | // FIXME retry? cancel? |
@@ -616,13 +616,13 @@ client_retrieve (struct GNUNET_SERVER_Client *client) { | |||
616 | * @param data pointer to the result data | 616 | * @param data pointer to the result data |
617 | */ | 617 | */ |
618 | void dht_get_response_handler(void *cls, | 618 | void dht_get_response_handler(void *cls, |
619 | struct GNUNET_TIME_Absolute exp, | 619 | struct GNUNET_TIME_Absolute exp, |
620 | const GNUNET_HashCode * key, | 620 | const GNUNET_HashCode * key, |
621 | const struct GNUNET_PeerIdentity * const *get_path, | 621 | const struct GNUNET_PeerIdentity * const *get_path, |
622 | const struct GNUNET_PeerIdentity * const *put_path, | 622 | const struct GNUNET_PeerIdentity * const *put_path, |
623 | enum GNUNET_BLOCK_Type type, | 623 | enum GNUNET_BLOCK_Type type, |
624 | size_t size, | 624 | size_t size, |
625 | const void *data) | 625 | const void *data) |
626 | { | 626 | { |
627 | struct PeerInfo *peer_info; | 627 | struct PeerInfo *peer_info; |
628 | struct MESH_tunnel *t; | 628 | struct MESH_tunnel *t; |
@@ -680,7 +680,9 @@ handle_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client) | |||
680 | if (c->handle == client) { | 680 | if (c->handle == client) { |
681 | GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c); | 681 | GNUNET_CONTAINER_DLL_remove (clients_head, clients_tail, c); |
682 | while (NULL != (t = c->tunnels_head)) { | 682 | while (NULL != (t = c->tunnels_head)) { |
683 | GNUNET_CONTAINER_DLL_remove (c->tunnels_head, c->tunnels_tail, t); | 683 | GNUNET_CONTAINER_DLL_remove (c->tunnels_head, |
684 | c->tunnels_tail, | ||
685 | t); | ||
684 | /* TODO free paths and other tunnel dynamic structures */ | 686 | /* TODO free paths and other tunnel dynamic structures */ |
685 | GNUNET_free (t); | 687 | GNUNET_free (t); |
686 | } | 688 | } |
@@ -1340,7 +1342,7 @@ core_disconnect (void *cls, | |||
1340 | /******************************************************************************/ | 1342 | /******************************************************************************/ |
1341 | 1343 | ||
1342 | /** | 1344 | /** |
1343 | * Process mesh requests. FIXME NON FUNCTIONAL, SKELETON | 1345 | * Process mesh requests. |
1344 | * | 1346 | * |
1345 | * @param cls closure | 1347 | * @param cls closure |
1346 | * @param server the initialized server | 1348 | * @param server the initialized server |