diff options
author | Nick Mathewson <nickm@torproject.org> | 2011-07-02 23:12:32 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2011-07-02 23:12:32 -0400 |
commit | c4b831e92d68e6c56246ae6e5b2002ef558525ac (patch) | |
tree | d1149907147426527037f74f4a763e0cef27640a /src/or/circuitbuild.c | |
parent | 36468ec44b6dc3443b0142de83a100e2a853acf8 (diff) | |
download | tor-c4b831e92d68e6c56246ae6e5b2002ef558525ac.tar.gz tor-c4b831e92d68e6c56246ae6e5b2002ef558525ac.zip |
Small tweaks to 2841 code
- const-ify some transport_t pointers
- Remove a vestigial argument to parse_bridge_line
- Make it compile without warnings on my laptop with
--enable-gcc-warnings
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r-- | src/or/circuitbuild.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 7857eda0b9..b00a35dcce 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -123,7 +123,7 @@ static int onion_append_hop(crypt_path_t **head_ptr, extend_info_t *choice); static void entry_guards_changed(void); -static transport_t *transport_get_by_name(const char *name); +static const transport_t *transport_get_by_name(const char *name); static void transport_free(transport_t *transport); static void bridge_free(bridge_info_t *bridge); @@ -4603,7 +4603,7 @@ transport_free(transport_t *transport) /** Returns the transport in our transport list that has the name <b>name</b>. * Else returns NULL. */ -static transport_t * +static const transport_t * transport_get_by_name(const char *name) { tor_assert(name); @@ -4822,7 +4822,7 @@ find_bridge_by_digest(const char *digest) */ int find_transport_by_bridge_addrport(const tor_addr_t *addr, uint16_t port, - transport_t **transport) + const transport_t **transport) { if (!bridge_list) return 1; |