Explorar o código

Fix compilation from 2841 branch

Nick Mathewson %!s(int64=14) %!d(string=hai) anos
pai
achega
616d85fdd8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/or/connection.c

+ 2 - 2
src/or/connection.c

@@ -4139,7 +4139,7 @@ int
 get_proxy_addrport(tor_addr_t *addr, uint16_t *port, int *proxy_type,
 get_proxy_addrport(tor_addr_t *addr, uint16_t *port, int *proxy_type,
                    const connection_t *conn)
                    const connection_t *conn)
 {
 {
-  or_options_t *options = get_options();
+  const or_options_t *options = get_options();
 
 
   if (options->HTTPSProxy) {
   if (options->HTTPSProxy) {
     tor_addr_copy(addr, &options->HTTPSProxyAddr);
     tor_addr_copy(addr, &options->HTTPSProxyAddr);
@@ -4179,7 +4179,7 @@ get_proxy_addrport(tor_addr_t *addr, uint16_t *port, int *proxy_type,
 static int
 static int
 get_proxy_type(void)
 get_proxy_type(void)
 {
 {
-  or_options_t *options = get_options();
+  const or_options_t *options = get_options();
 
 
   if (options->HTTPSProxy)
   if (options->HTTPSProxy)
     return PROXY_CONNECT;
     return PROXY_CONNECT;