gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r13782 - gnunet/src/dht
Date: Tue, 23 Nov 2010 13:16:34 +0100

Author: nevans
Date: 2010-11-23 13:16:34 +0100 (Tue, 23 Nov 2010)
New Revision: 13782

Modified:
   gnunet/src/dht/gnunet-dht-driver.c
Log:
bad ordering for config values

Modified: gnunet/src/dht/gnunet-dht-driver.c
===================================================================
--- gnunet/src/dht/gnunet-dht-driver.c  2010-11-23 11:48:54 UTC (rev 13781)
+++ gnunet/src/dht/gnunet-dht-driver.c  2010-11-23 12:16:34 UTC (rev 13782)
@@ -2576,6 +2576,16 @@
       return;
     }
 
+  /* Get number of peers to start from configuration */
+  if (GNUNET_SYSERR ==
+      GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers",
+                                             &num_peers))
+    {
+      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
+                  "Number of peers must be specified in section %s option 
%s\n", "TESTING", "NUM_PEERS");
+    }
+  GNUNET_assert(num_peers > 0 && num_peers < ULONG_MAX);
+
   /**
    * Get DHT specific testing options.
    */
@@ -3053,15 +3063,6 @@
   GNUNET_free_non_null(topology_str);
   GNUNET_free_non_null(blacklist_topology_str);
 
-  /* Get number of peers to start from configuration */
-  if (GNUNET_SYSERR ==
-      GNUNET_CONFIGURATION_get_value_number (cfg, "testing", "num_peers",
-                                             &num_peers))
-    {
-      GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
-                  "Number of peers must be specified in section %s option 
%s\n", "TESTING", "NUM_PEERS");
-    }
-  GNUNET_assert(num_peers > 0 && num_peers < ULONG_MAX);
   /* Set peers_left so we know when all peers started */
   peers_left = num_peers;
 




reply via email to

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