From: Bart Polot Date: Mon, 1 Jul 2013 13:05:38 +0000 (+0000) Subject: - freebsd doesn't have log2 X-Git-Tag: initial-import-from-subversion-38251~8558 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6f363e48edb537b36955cb31b42ab71eeba486c;p=oweals%2Fgnunet.git - freebsd doesn't have log2 --- diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c index cb257df49..75f3d96a1 100644 --- a/src/regex/gnunet-regex-profiler.c +++ b/src/regex/gnunet-regex-profiler.c @@ -1395,7 +1395,8 @@ run (void *cls, char *const *args, const char *cfgfile, num_peers * 20); GNUNET_CONFIGURATION_set_value_number (cfg, "DHT", "FORCE_NSE", - (long long unsigned) log2 (num_peers)); + (long long unsigned) + (log (num_peers) / log (2.0))); event_mask = 0LL; /* For feedback about the start process activate these and pass master_cb */ event_mask |= (1LL << GNUNET_TESTBED_ET_PEER_START);