diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-20 02:09:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-20 02:09:37 +0000 |
commit | b3b36477a0c30a716fc59c4e1ac590a6b0a7165f (patch) | |
tree | ff49272824ce3d897d6582ba695962cb37361a9f | |
parent | 123ec3e0abdf8601b5a5978ac63eaa4b04e64adf (diff) | |
download | gnunet-b3b36477a0c30a716fc59c4e1ac590a6b0a7165f.tar.gz gnunet-b3b36477a0c30a716fc59c4e1ac590a6b0a7165f.zip |
-clarify logic
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c index ec9e54de2..f6223b3dd 100644 --- a/src/dht/gnunet_dht_profiler.c +++ b/src/dht/gnunet_dht_profiler.c | |||
@@ -929,7 +929,7 @@ act_malicious_cont (void *cls, int success) | |||
929 | * @param emsg error message in case the operation has failed; will be NULL if | 929 | * @param emsg error message in case the operation has failed; will be NULL if |
930 | * operation has executed successfully. | 930 | * operation has executed successfully. |
931 | */ | 931 | */ |
932 | void | 932 | static void |
933 | dht_set_malicious(void *cls, | 933 | dht_set_malicious(void *cls, |
934 | struct GNUNET_TESTBED_Operation *op, | 934 | struct GNUNET_TESTBED_Operation *op, |
935 | void *ca_result, | 935 | void *ca_result, |
@@ -990,8 +990,9 @@ static void | |||
990 | set_malicious() | 990 | set_malicious() |
991 | { | 991 | { |
992 | unsigned int i; | 992 | unsigned int i; |
993 | DEBUG ("Setting %u peers malicious",n_malicious); | ||
994 | 993 | ||
994 | DEBUG ("Setting %u peers malicious", | ||
995 | n_malicious); | ||
995 | for(i = 0; i < n_malicious; i++) | 996 | for(i = 0; i < n_malicious; i++) |
996 | { | 997 | { |
997 | struct MaliciousContext *mc = &a_mc[i]; | 998 | struct MaliciousContext *mc = &a_mc[i]; |
@@ -1019,9 +1020,9 @@ start_func() | |||
1019 | { | 1020 | { |
1020 | #if ENABLE_MALICIOUS | 1021 | #if ENABLE_MALICIOUS |
1021 | set_malicious(); | 1022 | set_malicious(); |
1022 | return; | 1023 | #else |
1023 | #endif | ||
1024 | start_profiling(); | 1024 | start_profiling(); |
1025 | #endif | ||
1025 | } | 1026 | } |
1026 | 1027 | ||
1027 | 1028 | ||