]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix some issues in gcc warnings
authorOla Bini <ola@olabini.se>
Mon, 5 Oct 2015 16:58:48 +0000 (11:58 -0500)
committerOla Bini <ola@olabini.se>
Wed, 13 Jan 2016 15:32:09 +0000 (10:32 -0500)
src/test/test_options.c

index a72e15367bdf88a8cfe56aa44b1949dcdbc5d6d1..2104966fd590b97abb5113adb372ff5f28416385 100644 (file)
@@ -277,7 +277,7 @@ test_have_enough_mem_for_dircache(void *arg)
   return;
 }
 
-static char *fixed_get_uname_result = NULL;
+static const char *fixed_get_uname_result = NULL;
 
 static const char *
 fixed_get_uname(void)
@@ -316,7 +316,7 @@ typedef struct {
 } options_test_data_t;
 
 static options_test_data_t *
-get_options_test_data(char *conf)
+get_options_test_data(const char *conf)
 {
   config_line_t *cl=NULL;
   options_test_data_t *result = tor_malloc(sizeof(options_test_data_t));