Refactor MIN_IPS_TO_NOTE_* macros in geoip.c: simplify code.
commitd7be03427d1565769989bf309849aecb43650965
authorNick Mathewson <nickm@torproject.org>
Wed, 14 Jan 2009 06:20:57 +0000 (14 06:20 +0000)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Jan 2009 06:20:57 +0000 (14 06:20 +0000)
tree2692553b8f8f9505dee1bd140f98dc8f9a8eddbd
parent2aaf71826d21bdc2700514f35af682aba767a181
Refactor MIN_IPS_TO_NOTE_* macros in geoip.c: simplify code.

It was dumb to have an "announce the value if it's over 0" version of
the code coexisting with an "announce the value if it's at least N"
version.  Retain the latter only, with N set to 1.

Incidentally, this should fix a Coverity REVERSE_INULL warning.

svn:r18100
src/or/geoip.c