[tor-commits] [tor/master] Make the TransProxyType field non-const

nickm at torproject.org nickm at torproject.org
Tue Sep 26 17:02:34 UTC 2017


commit a5b18dfba9752d9785172dc814802c482cc77f0e
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Sep 26 12:25:07 2017 -0400

    Make the TransProxyType field non-const
    
    The correct type for a STRING confparse value is char *, not const
    char *.
---
 src/or/or.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/or/or.h b/src/or/or.h
index 84913efc4..5bd07ba6a 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -3704,8 +3704,8 @@ typedef struct {
   config_line_t *SocksPort_lines;
   /** Ports to listen on for transparent pf/netfilter connections. */
   config_line_t *TransPort_lines;
-  const char *TransProxyType; /**< What kind of transparent proxy
-                               * implementation are we using? */
+  char *TransProxyType; /**< What kind of transparent proxy
+                         * implementation are we using? */
   /** Parsed value of TransProxyType. */
   enum {
     TPT_DEFAULT,





More information about the tor-commits mailing list