aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_geoip.c
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2018-04-16 19:28:03 +0000
committerDavid Goulet <dgoulet@torproject.org>2018-04-26 11:33:22 -0400
commit6a28a82998b239ea312289ab19e55330f801e3b9 (patch)
tree0047ca28e908712556a8b8a3fb345c379bf35e26 /src/test/test_geoip.c
parent3f967bfbd13014764b9938c92981b7c3316b5c08 (diff)
downloadtor-6a28a82998b239ea312289ab19e55330f801e3b9.tar.gz
tor-6a28a82998b239ea312289ab19e55330f801e3b9.zip
tests: Fix a couple typos and remove unnecessary inline comments.
Diffstat (limited to 'src/test/test_geoip.c')
-rw-r--r--src/test/test_geoip.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/test/test_geoip.c b/src/test/test_geoip.c
index af36166538..fa5916c050 100644
--- a/src/test/test_geoip.c
+++ b/src/test/test_geoip.c
@@ -453,8 +453,6 @@ test_geoip6_load_file(void *arg)
char *dhex = NULL;
/* A nonexistant filename should fail. */
- /* NOTE: this is probably not needed, as the path is the same, just using
- AF_INET6 */
tt_int_op(-1, OP_EQ,
geoip_load_file(AF_INET6, "/you/did/not/put/a/file/here/I/hope"));
@@ -491,8 +489,6 @@ test_geoip6_load_file(void *arg)
tt_str_op(dhex, OP_EQ, geoip_db_digest(AF_INET6));
/* Make sure geoip_free_all() works. */
- /* NOTE: is this needed here?, if geoip_free_all, it should not change with
- ipv6 */
geoip_free_all();
tt_int_op(1, OP_EQ, geoip_get_n_countries());
tt_str_op("??", OP_EQ, geoip_get_country_name(0));
@@ -511,13 +507,13 @@ test_geoip_load_2nd_file(void *arg)
{
(void)arg;
- /* Load 1nd geoip file */
+ /* Load 1st geoip file */
const char FNAME[] = SRCDIR "/src/config/geoip";
tt_int_op(0, OP_EQ, geoip_load_file(AF_INET, FNAME));
int num_countries_geoip = geoip_get_n_countries();
- /* Load 2st geoip (empty) file */
+ /* Load 2nd geoip (empty) file */
const char FNAME2[] = SRCDIR "/src/test/geoip_dummy";
tt_int_op(0, OP_EQ, geoip_load_file(AF_INET, FNAME2));