diff options
author | Karsten Loesing <karsten.loesing@gmx.net> | 2009-07-11 00:44:27 +0200 |
---|---|---|
committer | Karsten Loesing <karsten.loesing@gmx.net> | 2009-07-11 00:44:27 +0200 |
commit | d1437245c77b930382f9b36355a3fa67d48ecb38 (patch) | |
tree | 1043fa7acc4ae8bac7f62ff9319ca45c953525e3 /src/or/geoip.c | |
parent | 7fb206e554db6290ed355cd7fda7d2bcfb23c89f (diff) | |
download | tor-d1437245c77b930382f9b36355a3fa67d48ecb38.tar tor-d1437245c77b930382f9b36355a3fa67d48ecb38.tar.gz |
Simplify the math to round up to the next multiple of some value.
Diffstat (limited to 'src/or/geoip.c')
-rw-r--r-- | src/or/geoip.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/or/geoip.c b/src/or/geoip.c index 13a6a2850..aac489311 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -461,16 +461,6 @@ _c_hist_compare(const void **_a, const void **_b) * are willing to talk about it? */ #define GEOIP_MIN_OBSERVATION_TIME (12*60*60) -/** Return the lowest x such that x is at least <b>number</b>, and x modulo - * <b>divisor</b> == 0. */ -static INLINE unsigned -round_to_next_multiple_of(unsigned number, unsigned divisor) -{ - number += divisor - 1; - number -= number % divisor; - return number; -} - /** Return a newly allocated comma-separated string containing entries for all * the countries from which we've seen enough clients connect. The entry * format is cc=num where num is the number of IPs we've seen connecting from |