]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a const warning in bug1692 code
authorNick Mathewson <nickm@torproject.org>
Wed, 10 Aug 2011 19:06:11 +0000 (15:06 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 10 Aug 2011 19:06:11 +0000 (15:06 -0400)
src/or/config.c

index e2e5cd3a6b9129fb937c3ceef7eaa6e66c4162a5..5a45dfbe15998edcb1c7e742bbfce86f9f13145d 100644 (file)
@@ -729,7 +729,7 @@ set_options(or_options_t *new_val, char **msg)
             smartlist_add(elements, line->value);
           }
         } else {
-          smartlist_add(elements, options_format.vars[i].name);
+          smartlist_add(elements, (char*)options_format.vars[i].name);
           smartlist_add(elements, NULL);
         }
       }