gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r24519 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r24519 - gnunet/src/dht
Date: Wed, 24 Oct 2012 18:03:39 +0200

Author: bartpolot
Date: 2012-10-24 18:03:39 +0200 (Wed, 24 Oct 2012)
New Revision: 24519

Modified:
   gnunet/src/dht/test_dht_topo.c
Log:
- allow n peers, typos, style

Modified: gnunet/src/dht/test_dht_topo.c
===================================================================
--- gnunet/src/dht/test_dht_topo.c      2012-10-24 16:01:08 UTC (rev 24518)
+++ gnunet/src/dht/test_dht_topo.c      2012-10-24 16:03:39 UTC (rev 24519)
@@ -270,7 +270,7 @@
   if (LINE == test_topology)
   {
     o = GNUNET_TESTING_daemon_get (pg, 0);
-    d = GNUNET_TESTING_daemon_get (pg, 4);
+    d = GNUNET_TESTING_daemon_get (pg, num_peers - 1);
   }
   else if (TORUS == test_topology)
   {
@@ -308,7 +308,8 @@
                                 GNUNET_BLOCK_TYPE_TEST, /* type */
                                 &d->id.hashPubKey,      /*key to search */
                                 4U,     /* replication level */
-                                GNUNET_DHT_RO_RECORD_ROUTE | 
GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, NULL,        /* xquery */
+                                GNUNET_DHT_RO_RECORD_ROUTE | 
GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE,
+                                NULL,        /* xquery */
                                 0,      /* xquery bits */
                                 &dht_get_id_handler, (void *)1);
   if (TORUS == test_topology)
@@ -319,7 +320,8 @@
                                     GNUNET_BLOCK_TYPE_TEST,       /* type */
                                     &d2->id.hashPubKey,   /*key to search */
                                     4U,   /* replication level */
-                                    GNUNET_DHT_RO_RECORD_ROUTE | 
GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, NULL,      /* xquery */
+                                    GNUNET_DHT_RO_RECORD_ROUTE | 
GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE,
+                                    NULL,      /* xquery */
                                     0,    /* xquery bits */
                                     &dht_get_id_handler, (void *)2);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "  looking for %s\n",
@@ -328,7 +330,8 @@
                                       GNUNET_BLOCK_TYPE_TEST,     /* type */
                                       &d_far->id.hashPubKey,      /*key to 
search */
                                       4U, /* replication level */
-                                      GNUNET_DHT_RO_RECORD_ROUTE | 
GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE, NULL,    /* xquery */
+                                      GNUNET_DHT_RO_RECORD_ROUTE | 
GNUNET_DHT_RO_DEMULTIPLEX_EVERYWHERE,
+                                      NULL,    /* xquery */
                                       0,  /* xquery bits */
                                       &dht_get_id_handler, (void *)3);
   }
@@ -338,7 +341,7 @@
 }
 
 /**
- * Task to put the id of each peer into teh DHT.
+ * Task to put the id of each peer into the DHT.
  * 
  * @param cls Closure (unused)
  * @param tc Task context




reply via email to

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