[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit a5b18dfba9752d9785172dc814802c482cc77f0e
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
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,



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits