aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2011-05-03 12:11:42 +0000
committerBart Polot <bart@net.in.tum.de>2011-05-03 12:11:42 +0000
commit57d6ebf5f20a87499f996957072f886be11a0189 (patch)
treebe4478adb6e0ed1075ae9fc197c00368a7a7286f /src/mesh
parentaf3a0a51afe30d42aa838d9df3fee4ad80054a98 (diff)
downloadgnunet-57d6ebf5f20a87499f996957072f886be11a0189.tar.gz
gnunet-57d6ebf5f20a87499f996957072f886be11a0189.zip
Fixed compiling error
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/gnunet-service-mesh.c22
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 */
501size_t feed_data_to_core (void *cls, size_t size, void *buf) { 501size_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 */
618void dht_get_response_handler(void *cls, 618void 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