From: Roger Dingledine Date: Tue, 14 Jul 2009 18:13:04 +0000 (-0400) Subject: make it compile without warnings X-Git-Tag: tor-0.2.2.1-alpha~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05975e2a89de4d2be9b4c011c0f78f53095077fe;p=thirdparty%2Ftor.git make it compile without warnings --- diff --git a/src/or/geoip.c b/src/or/geoip.c index 0aa5fd873b..14b5f66263 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -347,6 +347,7 @@ geoip_determine_shares(time_t now) last_time_determined_shares = now; } +#ifdef ENABLE_GEOIP_STATS /** Calculate which fraction of v2 and v3 directory requests aimed at caches * have been sent to us since the last call of this function up to time * now. Set *v2_share_out and *v3_share_out to the @@ -366,6 +367,7 @@ geoip_get_mean_shares(time_t now, double *v2_share_out, share_seconds = 0; return 0; } +#endif /** Note that we've seen a client connect from the IP addr (host order) * at time now. Ignored by all but bridges and directories if