gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r35444 - in gnunet/src: include rps


From: gnunet
Subject: [GNUnet-SVN] r35444 - in gnunet/src: include rps
Date: Wed, 25 Mar 2015 18:16:49 +0100

Author: ch3
Date: 2015-03-25 18:16:49 +0100 (Wed, 25 Mar 2015)
New Revision: 35444

Modified:
   gnunet/src/include/gnunet_protocols.h
   gnunet/src/include/gnunet_rps_service.h
   gnunet/src/rps/gnunet-service-rps.c
   gnunet/src/rps/rps.h
   gnunet/src/rps/rps_api.c
Log:
- s/#if/#ifdef/

Modified: gnunet/src/include/gnunet_protocols.h
===================================================================
--- gnunet/src/include/gnunet_protocols.h       2015-03-25 15:58:38 UTC (rev 
35443)
+++ gnunet/src/include/gnunet_protocols.h       2015-03-25 17:16:49 UTC (rev 
35444)
@@ -2678,7 +2678,7 @@
  */
 #define GNUNET_MESSAGE_TYPE_RPS_CS_SEED         955
 
-#if ENABLE_MALICIOUS
+#ifdef ENABLE_MALICIOUS
 /**
  * Turn RPS service malicious
  */

Modified: gnunet/src/include/gnunet_rps_service.h
===================================================================
--- gnunet/src/include/gnunet_rps_service.h     2015-03-25 15:58:38 UTC (rev 
35443)
+++ gnunet/src/include/gnunet_rps_service.h     2015-03-25 17:16:49 UTC (rev 
35444)
@@ -106,7 +106,7 @@
 GNUNET_RPS_request_cancel (struct GNUNET_RPS_Request_Handle *rh);
 
 
-#if ENABLE_MALICIOUS
+#ifdef ENABLE_MALICIOUS
 /**
  * Turn RPS service to act malicious.
  *

Modified: gnunet/src/rps/gnunet-service-rps.c
===================================================================
--- gnunet/src/rps/gnunet-service-rps.c 2015-03-25 15:58:38 UTC (rev 35443)
+++ gnunet/src/rps/gnunet-service-rps.c 2015-03-25 17:16:49 UTC (rev 35444)
@@ -356,7 +356,7 @@
 uint32_t num_hist_update_tasks;
 
 
-#if ENABLE_MALICIOUS
+#ifdef ENABLE_MALICIOUS
 /**
  * Type of malicious peer
  *
@@ -1332,7 +1332,9 @@
 }
 
 
-#if ENABLE_MALICIOUS
+
+
+#ifdef ENABLE_MALICIOUS
 /**
  * Turn RPS service to act malicious.
  *
@@ -2013,8 +2015,13 @@
   GNUNET_log (GNUNET_ERROR_TYPE_INFO,
               "STARTING SERVICE (rps) for peer [%s]\n",
               GNUNET_i2s (&own_identity));
+  #ifdef ENABLE_MALICIOUS
+  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+              "Malicious execution compiled in.\n");
+  #endif /* ENABLE_MALICIOUS */
 
 
+
   /* Get time interval from the configuration */
   if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_time (cfg, "RPS",
                                                         "ROUNDINTERVAL",

Modified: gnunet/src/rps/rps.h
===================================================================
--- gnunet/src/rps/rps.h        2015-03-25 15:58:38 UTC (rev 35443)
+++ gnunet/src/rps/rps.h        2015-03-25 17:16:49 UTC (rev 35444)
@@ -24,7 +24,6 @@
  */
 
 #include "gnunet_rps_service.h"
-//#define ENABLE_MALICIOUS 1
 
 /**
  * Mesh port used by RPS.
@@ -124,7 +123,7 @@
   /* Followed by num_peers * GNUNET_PeerIdentity */
 };
 
-#if ENABLE_MALICIOUS
+#ifdef ENABLE_MALICIOUS
 /**
  * Message from client to service to turn service malicious.
  */

Modified: gnunet/src/rps/rps_api.c
===================================================================
--- gnunet/src/rps/rps_api.c    2015-03-25 15:58:38 UTC (rev 35443)
+++ gnunet/src/rps/rps_api.c    2015-03-25 17:16:49 UTC (rev 35444)
@@ -292,7 +292,7 @@
 }
 
 
-#if ENABLE_MALICIOUS
+#ifdef ENABLE_MALICIOUS
 /**
  * Turn RPS service to act malicious.
  *




reply via email to

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