ソースを参照

Fix a const-non-const warning

svn:r5923
Nick Mathewson 19 年 前
コミット
97bff8edaa
1 ファイル変更2 行追加2 行削除
  1. 2 2
      src/or/config.c

+ 2 - 2
src/or/config.c

@@ -2917,12 +2917,12 @@ normalize_log_options(or_options_t *options)
 /** Add the exit policy described by <b>more</b> to <b>policy</b>.
  */
 static void
-options_append_exit_policy_string(addr_policy_t **policy, char *more)
+options_append_exit_policy_string(addr_policy_t **policy, const char *more)
 {
   config_line_t tmp;
 
   tmp.key = NULL;
-  tmp.value = more;
+  tmp.value = (char*) more;
   tmp.next = NULL;
   config_parse_addr_policy(&tmp, policy, -1);
 }