]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Make the TransProxyType field non-const
authorNick Mathewson <nickm@torproject.org>
Tue, 26 Sep 2017 16:25:07 +0000 (12:25 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 26 Sep 2017 16:25:07 +0000 (12:25 -0400)
The correct type for a STRING confparse value is char *, not const
char *.

src/or/or.h

index 84913efc4d168d328e691961196164c067a87d80..5bd07ba6a37b336516dd61c21f03f7d8c414c324 100644 (file)
@@ -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,