[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Fix some issues in gcc warnings
commit 1a3fcda0a3779a430e5e983c5afc048e03968dac
Author: Ola Bini <ola@xxxxxxxxxx>
Date: Mon Oct 5 11:58:48 2015 -0500
Fix some issues in gcc warnings
---
src/test/test_options.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/test_options.c b/src/test/test_options.c
index a72e153..2104966 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));
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits