gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r17921 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r17921 - gnunet/src/mesh
Date: Wed, 2 Nov 2011 14:53:05 +0100

Author: bartpolot
Date: 2011-11-02 14:53:05 +0100 (Wed, 02 Nov 2011)
New Revision: 17921

Modified:
   gnunet/src/mesh/gnunet-service-mesh.c
Log:
Improved legibility, formatting

Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c       2011-11-02 13:44:25 UTC (rev 
17920)
+++ gnunet/src/mesh/gnunet-service-mesh.c       2011-11-02 13:53:05 UTC (rev 
17921)
@@ -2576,7 +2576,7 @@
       own_pos = i;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                "MESH:   Own position: %u\n", own_pos);
+              "MESH:   Own position: %u\n", own_pos);
   if (own_pos == 0)
   {
     /* cannot be self, must be 'not found' */
@@ -2604,6 +2604,7 @@
         &my_full_id.hashPubKey,
         peer_info_get(&my_full_id),
         GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST));
+    /* FIXME use send_message */
     info = GNUNET_malloc (sizeof (struct MeshDataDescriptor));
     info->origin = &t->id;
     info->peer = GNUNET_CONTAINER_multihashmap_get (peers, &peer->hashPubKey);
@@ -2631,8 +2632,8 @@
     path2 = path_duplicate(path);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "MESH:   Retransmitting.\n");
-    path_add_to_peer(dest_peer_info, path, GNUNET_NO);
-    path = path_duplicate(path2);
+    path_add_to_peer(dest_peer_info, path2, GNUNET_NO);
+    path2 = path_duplicate(path);
     path_add_to_origin(orig_peer_info, path2, GNUNET_NO);
     send_create_path(dest_peer_info, path, t);
   }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]