diff options
author | George Kadianakis <desnacked@riseup.net> | 2012-01-26 01:09:53 +0200 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2012-07-03 21:26:03 +0300 |
commit | 4bafe24400fa80d2bfc7c862924d8af04554e002 (patch) | |
tree | a33aaaf2df119274d2d7acbac72edb121582f1a1 /src/or/transports.c | |
parent | 17caec3676e857bf87f4b3c7d50114a9627b52a4 (diff) | |
download | tor-4bafe24400fa80d2bfc7c862924d8af04554e002.tar.gz tor-4bafe24400fa80d2bfc7c862924d8af04554e002.zip |
Constify some functions.
Diffstat (limited to 'src/or/transports.c')
-rw-r--r-- | src/or/transports.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/or/transports.c b/src/or/transports.c index 6ba080e51c..e0492b8d6b 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -135,7 +135,7 @@ static smartlist_t *transport_list = NULL; SOCKS version <b>socks_ver</b>. */ static transport_t * transport_new(const tor_addr_t *addr, uint16_t port, - const char *name, int socks_ver) + const char *name, int socks_ver) { transport_t *t = tor_malloc_zero(sizeof(transport_t)); @@ -238,7 +238,7 @@ transport_get_by_name(const char *name) * a transport identical to <b>t</b> already registered and -1 if * <b>t</b> cannot be added due to conflicts. */ static int -transport_resolve_conflicts(transport_t *t) +transport_resolve_conflicts(const transport_t *t) { /* This is how we resolve transport conflicts: @@ -683,7 +683,7 @@ configure_proxy(managed_proxy_t *mp) /** Register server managed proxy <b>mp</b> transports to state */ static void -register_server_proxy(managed_proxy_t *mp) +register_server_proxy(const managed_proxy_t *mp) { tor_assert(mp->conf_state != PT_PROTO_COMPLETED); @@ -697,7 +697,7 @@ register_server_proxy(managed_proxy_t *mp) /** Register all the transports supported by client managed proxy * <b>mp</b> to the bridge subsystem. */ static void -register_client_proxy(managed_proxy_t *mp) +register_client_proxy(const managed_proxy_t *mp) { int r; @@ -724,7 +724,7 @@ register_client_proxy(managed_proxy_t *mp) /** Register the transports of managed proxy <b>mp</b>. */ static INLINE void -register_proxy(managed_proxy_t *mp) +register_proxy(const managed_proxy_t *mp) { if (mp->is_server) register_server_proxy(mp); |