aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2009-07-14 14:13:04 -0400
committerRoger Dingledine <arma@torproject.org>2009-07-14 14:13:04 -0400
commit05975e2a89de4d2be9b4c011c0f78f53095077fe (patch)
tree97b6160d672a4b3d783ed7e995dec0f7f5e0edad
parent31b72732c66f86e686e7420c83480661ed8d914b (diff)
downloadtor-05975e2a89de4d2be9b4c011c0f78f53095077fe.tar.gz
tor-05975e2a89de4d2be9b4c011c0f78f53095077fe.zip
make it compile without warnings
-rw-r--r--src/or/geoip.c2
1 files changed, 2 insertions, 0 deletions
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
* <b>now</b>. Set *<b>v2_share_out</b> and *<b>v3_share_out</b> 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 <b>addr</b> (host order)
* at time <b>now</b>. Ignored by all but bridges and directories if