]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove unnecessary casting
authorcypherpunks <cypherpunks@torproject.org>
Wed, 11 Nov 2015 14:05:47 +0000 (15:05 +0100)
committerNick Mathewson <nickm@torproject.org>
Wed, 9 Dec 2015 15:22:26 +0000 (10:22 -0500)
src/test/test_rendcache.c

index 958c83aaa9cab6d019327ab5d005b2064b349f65..77796994b421604e3b26cbafad2b1439de42e672 100644 (file)
@@ -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