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/circuituse.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/or/circuituse.h') diff --git a/src/or/circuituse.h b/src/or/circuituse.h index 8e10212f1..ab7f6a2fe 100644 --- a/src/or/circuituse.h +++ b/src/or/circuituse.h @@ -50,7 +50,8 @@ int connection_ap_handshake_attach_chosen_circuit(edge_connection_t *conn, crypt_path_t *cpath); int connection_ap_handshake_attach_circuit(edge_connection_t *conn); -int hostname_in_track_host_exits(or_options_t *options, const char *address); +int hostname_in_track_host_exits(const or_options_t *options, + const char *address); #endif -- cgit v1.2.3