summaryrefslogtreecommitdiff
path: root/src/or/geoip.h
diff options
context:
space:
mode:
authorLinus Nordberg <linus@torproject.org>2012-10-31 13:58:55 +0100
committerLinus Nordberg <linus@torproject.org>2012-10-31 13:58:55 +0100
commit6a241ff3ffe7dc1f18c8a5d335a012aa20d763f7 (patch)
tree599a2fe6b599639d5abe5f640846f04c2f280167 /src/or/geoip.h
parent46c76e6bddfc6ea7a3859ddc93774e95d891845e (diff)
downloadtor-6a241ff3ffe7dc1f18c8a5d335a012aa20d763f7.tar.gz
tor-6a241ff3ffe7dc1f18c8a5d335a012aa20d763f7.zip
Duplicate less code.
Diffstat (limited to 'src/or/geoip.h')
-rw-r--r--src/or/geoip.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/geoip.h b/src/or/geoip.h
index ea123424bb..5a17bc2e43 100644
--- a/src/or/geoip.h
+++ b/src/or/geoip.h
@@ -13,8 +13,7 @@
#define _TOR_GEOIP_H
#ifdef GEOIP_PRIVATE
-int geoip_ipv4_parse_entry(const char *line);
-int geoip_ipv6_parse_entry(const char *line);
+int geoip_parse_entry(const char *line, sa_family_t family);
int geoip_get_country_by_ipv4(uint32_t ipaddr);
int geoip_get_country_by_ipv6(const struct in6_addr *addr);
#endif