From 47c8433a0c3c579588e1e5d4f67f16843ba26bca Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 14 Jun 2011 13:01:38 -0400 Subject: Make the get_options() return const This lets us make a lot of other stuff const, allows the compiler to generate (slightly) better code, and will make me get slightly fewer patches from folks who stick mutable stuff into or_options_t. const: because not every input is an output! --- src/or/geoip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/or/geoip.h') diff --git a/src/or/geoip.h b/src/or/geoip.h index 02228eab3e..b50da74dc3 100644 --- a/src/or/geoip.h +++ b/src/or/geoip.h @@ -15,8 +15,8 @@ #ifdef GEOIP_PRIVATE int geoip_parse_entry(const char *line); #endif -int should_record_bridge_info(or_options_t *options); -int geoip_load_file(const char *filename, or_options_t *options); +int should_record_bridge_info(const or_options_t *options); +int geoip_load_file(const char *filename, const or_options_t *options); int geoip_get_country_by_ip(uint32_t ipaddr); int geoip_get_n_countries(void); const char *geoip_get_country_name(country_t num); -- cgit v1.2.3-54-g00ecf