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/test/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/test.c') diff --git a/src/test/test.c b/src/test/test.c index e2f8b115d3..1db1546639 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -1074,8 +1074,8 @@ test_geoip(void) test_streq("??", NAMEFOR(2000)); #undef NAMEFOR - get_options()->BridgeRelay = 1; - get_options()->BridgeRecordUsageByCountry = 1; + get_options_mutable()->BridgeRelay = 1; + get_options_mutable()->BridgeRecordUsageByCountry = 1; /* Put 9 observations in AB... */ for (i=32; i < 40; ++i) geoip_note_client_seen(GEOIP_CLIENT_CONNECT, i, now-7200); -- cgit v1.2.3-54-g00ecf