Browse Source

Make the TransProxyType field non-const

The correct type for a STRING confparse value is char *, not const
char *.
Nick Mathewson 7 years ago
parent
commit
a5b18dfba9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/or/or.h

+ 2 - 2
src/or/or.h

@@ -3704,8 +3704,8 @@ typedef struct {
   config_line_t *SocksPort_lines;
   config_line_t *SocksPort_lines;
   /** Ports to listen on for transparent pf/netfilter connections. */
   /** Ports to listen on for transparent pf/netfilter connections. */
   config_line_t *TransPort_lines;
   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. */
   /** Parsed value of TransProxyType. */
   enum {
   enum {
     TPT_DEFAULT,
     TPT_DEFAULT,