indentation
authorChristian Grothoff <christian@grothoff.org>
Wed, 27 Jun 2018 22:45:35 +0000 (00:45 +0200)
committerChristian Grothoff <christian@grothoff.org>
Wed, 27 Jun 2018 22:45:35 +0000 (00:45 +0200)
src/cadet/gnunet-service-cadet.c
src/cadet/gnunet-service-cadet_peer.c

index dd693731f96057e321117a261cc935d5282a08ed..d61556785236cefa3644332ab64ef780d8c1047e 100644 (file)
@@ -927,29 +927,23 @@ get_peer_info (void *cls,
   struct CadetClient *c = cls;
   struct GNUNET_MQ_Envelope *env;
   struct GNUNET_CADET_LocalInfoPeer *msg;
-
   
   env = GNUNET_MQ_msg (msg,
                        GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEER);
-  
   msg->offset = htons(0);
   msg->destination = *peer;
   msg->paths = htons (GCP_count_paths (p));
   msg->tunnel = htons (NULL != GCP_get_tunnel (p,
                                                GNUNET_NO));
   msg->finished_with_paths = htons(0);
-  
   GNUNET_MQ_send (c->mq,
                   env);
-  
-  GCP_iterate_indirect_paths(p,
-                            &path_info_iterator,
-                            c->mq);
-  
+  GCP_iterate_indirect_paths (p,
+                             &path_info_iterator,
+                             c->mq);  
 }
 
 
-
 /**
  * Handler for client's SHOW_PEER request.
  *
index ac1ee59debefeb796c8c13e9cfc31377b3e732a7..bd642f1552138fe515096eea5e48ca8b3d2cbf44 100644 (file)
@@ -1217,6 +1217,8 @@ GCP_iterate_paths (struct CadetPeer *cp,
        (NULL == cp->core_mq) ? "" : " including direct link");
   if (NULL != cp->core_mq)
   {
+    /* FIXME: this branch seems to duplicate the 
+       i=0 case below (direct link). Leave out!??? -CG */
     struct CadetPeerPath *path;
 
     path = GCPP_get_path_from_route (1,