summaryrefslogtreecommitdiff
path: root/src/test/test_rendcache.c
diff options
context:
space:
mode:
authorcypherpunks <cypherpunks@torproject.org>2015-11-11 15:05:47 +0100
committerNick Mathewson <nickm@torproject.org>2015-12-09 10:22:26 -0500
commit0a97a3095b6af3554d92a46f4108061a53cc4dd2 (patch)
tree1fa00d5fb3c7fd9efe5cff4b36a73b12a96b734f /src/test/test_rendcache.c
parentc94aa4573ab571af233e83f539844f3ccdd9fc2b (diff)
downloadtor-0a97a3095b6af3554d92a46f4108061a53cc4dd2.tar.gz
tor-0a97a3095b6af3554d92a46f4108061a53cc4dd2.zip
Remove unnecessary casting
Diffstat (limited to 'src/test/test_rendcache.c')
-rw-r--r--src/test/test_rendcache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c
index 958c83aaa9..77796994b4 100644
--- a/src/test/test_rendcache.c
+++ b/src/test/test_rendcache.c
@@ -1265,7 +1265,7 @@ test_rend_cache_validate_intro_point_failure(void *data)
rend_service_descriptor_t *desc = NULL;
char *service_id = NULL;
rend_intro_point_t *intro = NULL;
- const uint8_t *identity = NULL;
+ const char *identity = NULL;
rend_cache_failure_t *failure;
rend_cache_failure_intro_t *ip;
@@ -1275,11 +1275,11 @@ test_rend_cache_validate_intro_point_failure(void *data)
desc->timestamp = time(NULL) + RECENT_TIME;
intro = (rend_intro_point_t *)smartlist_get(desc->intro_nodes, 0);
- identity = (uint8_t *) intro->extend_info->identity_digest;
+ identity = intro->extend_info->identity_digest;
failure = rend_cache_failure_entry_new();
ip = rend_cache_failure_intro_entry_new(INTRO_POINT_FAILURE_TIMEOUT);
- digestmap_set(failure->intro_failures, (char *)identity, ip);
+ digestmap_set(failure->intro_failures, identity, ip);
strmap_set_lc(rend_cache_failure, service_id, failure);
// Test when we have an intro point in our cache