diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-02-20 13:23:45 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-02-20 13:23:45 +0100 |
commit | 311f47494f931aefd9dc1e247831d88a3bcebdb4 (patch) | |
tree | d673be28629296ab33ed7f43ae7140e88967fc09 /src/rps/test_rps.c | |
parent | 1173f89823cd4cb1ff6c8afdbc33ea9397bbeee2 (diff) | |
download | gnunet-311f47494f931aefd9dc1e247831d88a3bcebdb4.tar.gz gnunet-311f47494f931aefd9dc1e247831d88a3bcebdb4.zip |
fix enable_malicous check
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r-- | src/rps/test_rps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 126cc5dec..26066bf10 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c | |||
@@ -1357,7 +1357,7 @@ static void mal_init_peer (struct RPSPeer *rps_peer) | |||
1357 | static void | 1357 | static void |
1358 | mal_pre (struct RPSPeer *rps_peer, struct GNUNET_RPS_Handle *h) | 1358 | mal_pre (struct RPSPeer *rps_peer, struct GNUNET_RPS_Handle *h) |
1359 | { | 1359 | { |
1360 | #ifdef ENABLE_MALICIOUS | 1360 | #if ENABLE_MALICIOUS |
1361 | uint32_t num_mal_peers; | 1361 | uint32_t num_mal_peers; |
1362 | 1362 | ||
1363 | GNUNET_assert ( (1 >= portion) && | 1363 | GNUNET_assert ( (1 >= portion) && |
@@ -1388,7 +1388,7 @@ mal_cb (struct RPSPeer *rps_peer) | |||
1388 | return; | 1388 | return; |
1389 | } | 1389 | } |
1390 | 1390 | ||
1391 | #ifdef ENABLE_MALICIOUS | 1391 | #if ENABLE_MALICIOUS |
1392 | GNUNET_assert ( (1 >= portion) && | 1392 | GNUNET_assert ( (1 >= portion) && |
1393 | (0 < portion) ); | 1393 | (0 < portion) ); |
1394 | num_mal_peers = round (portion * num_peers); | 1394 | num_mal_peers = round (portion * num_peers); |