summaryrefslogtreecommitdiff
path: root/src/test/test_options.c
diff options
context:
space:
mode:
authorOla Bini <ola@olabini.se>2015-10-05 11:58:48 -0500
committerOla Bini <ola@olabini.se>2016-01-13 10:32:09 -0500
commit1a3fcda0a3779a430e5e983c5afc048e03968dac (patch)
treef2331e3be5c9038a795ae0aebdd367049afd0f6b /src/test/test_options.c
parent5edd431d923828bb7e3e021fe5e31a3cffdbb055 (diff)
downloadtor-1a3fcda0a3779a430e5e983c5afc048e03968dac.tar.gz
tor-1a3fcda0a3779a430e5e983c5afc048e03968dac.zip
Fix some issues in gcc warnings
Diffstat (limited to 'src/test/test_options.c')
-rw-r--r--src/test/test_options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_options.c b/src/test/test_options.c
index a72e15367b..2104966fd5 100644
--- a/src/test/test_options.c
+++ b/src/test/test_options.c
@@ -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));