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/gnunet-rps-profiler.c | |
parent | 1173f89823cd4cb1ff6c8afdbc33ea9397bbeee2 (diff) | |
download | gnunet-311f47494f931aefd9dc1e247831d88a3bcebdb4.tar.gz gnunet-311f47494f931aefd9dc1e247831d88a3bcebdb4.zip |
fix enable_malicous check
Diffstat (limited to 'src/rps/gnunet-rps-profiler.c')
-rw-r--r-- | src/rps/gnunet-rps-profiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c index 36a167203..937a4363b 100644 --- a/src/rps/gnunet-rps-profiler.c +++ b/src/rps/gnunet-rps-profiler.c | |||
@@ -1574,7 +1574,7 @@ static void mal_init_peer (struct RPSPeer *rps_peer) | |||
1574 | static void | 1574 | static void |
1575 | mal_pre (struct RPSPeer *rps_peer, struct GNUNET_RPS_Handle *h) | 1575 | mal_pre (struct RPSPeer *rps_peer, struct GNUNET_RPS_Handle *h) |
1576 | { | 1576 | { |
1577 | #ifdef ENABLE_MALICIOUS | 1577 | #if ENABLE_MALICIOUS |
1578 | uint32_t num_mal_peers; | 1578 | uint32_t num_mal_peers; |
1579 | 1579 | ||
1580 | GNUNET_assert ( (1 >= portion) && | 1580 | GNUNET_assert ( (1 >= portion) && |
@@ -1605,7 +1605,7 @@ mal_cb (struct RPSPeer *rps_peer) | |||
1605 | return; | 1605 | return; |
1606 | } | 1606 | } |
1607 | 1607 | ||
1608 | #ifdef ENABLE_MALICIOUS | 1608 | #if ENABLE_MALICIOUS |
1609 | GNUNET_assert ( (1 >= portion) && | 1609 | GNUNET_assert ( (1 >= portion) && |
1610 | (0 < portion) ); | 1610 | (0 < portion) ); |
1611 | num_mal_peers = round (portion * num_peers); | 1611 | num_mal_peers = round (portion * num_peers); |