diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-11-02 13:53:05 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-11-02 13:53:05 +0000 |
commit | caa38aaebbf4fac8be322f9208afcae02b5be5e8 (patch) | |
tree | 3369d8efc01ed016f83fd0a80dee25ffe5fda80e /src/mesh | |
parent | 0c04496878b9ca295d085737cd3783b0d0fb753e (diff) | |
download | gnunet-caa38aaebbf4fac8be322f9208afcae02b5be5e8.tar.gz gnunet-caa38aaebbf4fac8be322f9208afcae02b5be5e8.zip |
Improved legibility, formatting
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index 0203612e5..925e6f3fc 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c | |||
@@ -2576,7 +2576,7 @@ handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
2576 | own_pos = i; | 2576 | own_pos = i; |
2577 | } | 2577 | } |
2578 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2578 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2579 | "MESH: Own position: %u\n", own_pos); | 2579 | "MESH: Own position: %u\n", own_pos); |
2580 | if (own_pos == 0) | 2580 | if (own_pos == 0) |
2581 | { | 2581 | { |
2582 | /* cannot be self, must be 'not found' */ | 2582 | /* cannot be self, must be 'not found' */ |
@@ -2604,6 +2604,7 @@ handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
2604 | &my_full_id.hashPubKey, | 2604 | &my_full_id.hashPubKey, |
2605 | peer_info_get(&my_full_id), | 2605 | peer_info_get(&my_full_id), |
2606 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); | 2606 | GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)); |
2607 | /* FIXME use send_message */ | ||
2607 | info = GNUNET_malloc (sizeof (struct MeshDataDescriptor)); | 2608 | info = GNUNET_malloc (sizeof (struct MeshDataDescriptor)); |
2608 | info->origin = &t->id; | 2609 | info->origin = &t->id; |
2609 | info->peer = GNUNET_CONTAINER_multihashmap_get (peers, &peer->hashPubKey); | 2610 | info->peer = GNUNET_CONTAINER_multihashmap_get (peers, &peer->hashPubKey); |
@@ -2631,8 +2632,8 @@ handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
2631 | path2 = path_duplicate(path); | 2632 | path2 = path_duplicate(path); |
2632 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2633 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2633 | "MESH: Retransmitting.\n"); | 2634 | "MESH: Retransmitting.\n"); |
2634 | path_add_to_peer(dest_peer_info, path, GNUNET_NO); | 2635 | path_add_to_peer(dest_peer_info, path2, GNUNET_NO); |
2635 | path = path_duplicate(path2); | 2636 | path2 = path_duplicate(path); |
2636 | path_add_to_origin(orig_peer_info, path2, GNUNET_NO); | 2637 | path_add_to_origin(orig_peer_info, path2, GNUNET_NO); |
2637 | send_create_path(dest_peer_info, path, t); | 2638 | send_create_path(dest_peer_info, path, t); |
2638 | } | 2639 | } |