diff options
Diffstat (limited to 'src/topology/gnunet-daemon-topology.c')
-rw-r--r-- | src/topology/gnunet-daemon-topology.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c index 9e662ca0b..1b6004392 100644 --- a/src/topology/gnunet-daemon-topology.c +++ b/src/topology/gnunet-daemon-topology.c | |||
@@ -388,8 +388,7 @@ setup_filter (struct Peer *peer) | |||
388 | * of the data structure and would only really become | 388 | * of the data structure and would only really become |
389 | * "useless" once a HELLO has been passed on to ~100 | 389 | * "useless" once a HELLO has been passed on to ~100 |
390 | * other peers, which is likely more than enough in | 390 | * other peers, which is likely more than enough in |
391 | * any case; hence 64, 5 as bloomfilter parameters. */ | 391 | * any case; hence 64, 5 as bloomfilter parameters. */peer->filter = GNUNET_CONTAINER_bloomfilter_init (NULL, 64, 5); |
392 | peer->filter = GNUNET_CONTAINER_bloomfilter_init (NULL, 64, 5); | ||
393 | peer->filter_expiration = | 392 | peer->filter_expiration = |
394 | GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_REPEAT_FREQUENCY); | 393 | GNUNET_TIME_relative_to_absolute (HELLO_ADVERTISEMENT_MIN_REPEAT_FREQUENCY); |
395 | /* never send a peer its own HELLO */ | 394 | /* never send a peer its own HELLO */ |
@@ -1142,12 +1141,15 @@ main (int argc, char *const *argv) | |||
1142 | /** | 1141 | /** |
1143 | * MINIMIZE heap size (way below 128k) since this process doesn't need much. | 1142 | * MINIMIZE heap size (way below 128k) since this process doesn't need much. |
1144 | */ | 1143 | */ |
1145 | void __attribute__ ((constructor)) GNUNET_ARM_memory_init () | 1144 | void __attribute__ ((constructor)) |
1145 | GNUNET_ARM_memory_init () | ||
1146 | { | 1146 | { |
1147 | mallopt (M_TRIM_THRESHOLD, 4 * 1024); | 1147 | mallopt (M_TRIM_THRESHOLD, 4 * 1024); |
1148 | mallopt (M_TOP_PAD, 1 * 1024); | 1148 | mallopt (M_TOP_PAD, 1 * 1024); |
1149 | malloc_trim (0); | 1149 | malloc_trim (0); |
1150 | } | 1150 | } |
1151 | |||
1152 | |||
1151 | #endif | 1153 | #endif |
1152 | 1154 | ||
1153 | /* end of gnunet-daemon-topology.c */ | 1155 | /* end of gnunet-daemon-topology.c */ |