瀏覽代碼

Make the TransProxyType field non-const

The correct type for a STRING confparse value is char *, not const
char *.
Nick Mathewson 6 年之前
父節點
當前提交
a5b18dfba9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/or/or.h

+ 2 - 2
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,