Browse Source

Fix a const-non-const warning

svn:r5923
Nick Mathewson 19 years ago
parent
commit
97bff8edaa
1 changed files with 2 additions and 2 deletions
  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>.
 /** Add the exit policy described by <b>more</b> to <b>policy</b>.
  */
  */
 static void
 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;
   config_line_t tmp;
 
 
   tmp.key = NULL;
   tmp.key = NULL;
-  tmp.value = more;
+  tmp.value = (char*) more;
   tmp.next = NULL;
   tmp.next = NULL;
   config_parse_addr_policy(&tmp, policy, -1);
   config_parse_addr_policy(&tmp, policy, -1);
 }
 }