[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Fix a const-non-const warning



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv4205/src/or

Modified Files:
	config.c 
Log Message:
Fix a const-non-const warning

Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.496
retrieving revision 1.497
diff -u -p -d -r1.496 -r1.497
--- config.c	1 Feb 2006 03:53:52 -0000	1.496
+++ config.c	6 Feb 2006 04:55:27 -0000	1.497
@@ -2917,12 +2917,12 @@ normalize_log_options(or_options_t *opti
 /** 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);
 }