diff options
author | Linus Nordberg <linus@nordberg.se> | 2011-12-01 09:40:47 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2011-12-01 09:40:47 +0100 |
commit | c06c80b7f7911b0d5c99860ef8c4770cacdbe0a2 (patch) | |
tree | 833dbb4b12073ffb6d0b7a0a7588975f6614c98a /src | |
parent | d106caaadc66f519d66e7b20068050113d99a1ac (diff) | |
download | tor-c06c80b7f7911b0d5c99860ef8c4770cacdbe0a2.tar tor-c06c80b7f7911b0d5c99860ef8c4770cacdbe0a2.tar.gz |
Fix warnings.
Remove environ declaration.
Use ORPort->value. And it's a string.
Make tmp a char *.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/transports.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/or/transports.c b/src/or/transports.c index eaaf1a3bf..06bc039f6 100644 --- a/src/or/transports.c +++ b/src/or/transports.c @@ -946,10 +946,8 @@ static void set_managed_proxy_environment(LPVOID *envp, const managed_proxy_t *mp) { const or_options_t *options = get_options(); - extern char **environ; - - LPVOID tmp=NULL; + char *tmp=NULL; char *state_tmp=NULL; char *state_env=NULL; char *transports_to_launch=NULL; @@ -992,7 +990,8 @@ set_managed_proxy_environment(LPVOID *envp, const managed_proxy_t *mp) smartlist_add(envs, transports_env); if (mp->is_server) { - tor_asprintf(&orport_env, "TOR_PT_ORPORT=127.0.0.1:%d", options->ORPort); + tor_asprintf(&orport_env, "TOR_PT_ORPORT=127.0.0.1:%s", + options->ORPort->value); bindaddr_tmp = get_bindaddr_for_proxy(mp); tor_asprintf(&bindaddr_env, "TOR_PT_SERVER_BINDADDR=%s", bindaddr_tmp); |