gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r34731 - gnunet/src/dht
Date: Sat, 20 Dec 2014 03:09:37 +0100

Author: grothoff
Date: 2014-12-20 03:09:37 +0100 (Sat, 20 Dec 2014)
New Revision: 34731

Modified:
   gnunet/src/dht/gnunet_dht_profiler.c
Log:
-clarify logic

Modified: gnunet/src/dht/gnunet_dht_profiler.c
===================================================================
--- gnunet/src/dht/gnunet_dht_profiler.c        2014-12-20 02:06:46 UTC (rev 
34730)
+++ gnunet/src/dht/gnunet_dht_profiler.c        2014-12-20 02:09:37 UTC (rev 
34731)
@@ -929,7 +929,7 @@
  * @param emsg error message in case the operation has failed; will be NULL if
  *          operation has executed successfully.
  */
-void
+static void
 dht_set_malicious(void *cls,
                   struct GNUNET_TESTBED_Operation *op,
                   void *ca_result,
@@ -990,8 +990,9 @@
 set_malicious()
 {
   unsigned int i;
-  DEBUG ("Setting %u peers malicious",n_malicious);
 
+  DEBUG ("Setting %u peers malicious",
+         n_malicious);
   for(i = 0; i < n_malicious; i++)
   {
     struct MaliciousContext *mc = &a_mc[i];
@@ -1019,9 +1020,9 @@
 {
 #if ENABLE_MALICIOUS
   set_malicious();
-  return;
+#else
+  start_profiling();
 #endif
-  start_profiling();
 }
 
 




reply via email to

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