summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/test_hs_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_hs_common.c b/src/test/test_hs_common.c
index fce71ef2dd..2461e7cd6e 100644
--- a/src/test/test_hs_common.c
+++ b/src/test/test_hs_common.c
@@ -409,7 +409,7 @@ test_responsible_hsdirs(void *arg)
memset(&ri, 0 ,sizeof(routerinfo_t));
tor_addr_parse(&ipv4_addr, "127.0.0.1");
ri.addr = tor_addr_to_ipv4h(&ipv4_addr);
- ri.nickname = tor_strdup("fatal");
+ ri.nickname = (char *) "fatal";
ri.protocol_list = (char *) "HSDir=1-2 LinkAuth=3";
memset(ri.cache_info.identity_digest, 'A', DIGEST_LEN);
tt_assert(nodelist_set_routerinfo(&ri, NULL));