diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-07 20:11:28 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-07 20:11:28 +0000 |
commit | 789df20e7d3b63744d0d12d3e095bc59ee6fcee2 (patch) | |
tree | b7aa9206e38037c212e118d0bd2a83fcd1960848 /src/or/onion.c | |
parent | dfb009febb266ce12c0358f35c2ad25cb2c1f227 (diff) | |
download | tor-789df20e7d3b63744d0d12d3e095bc59ee6fcee2.tar.gz tor-789df20e7d3b63744d0d12d3e095bc59ee6fcee2.zip |
There is no need to cast void* to other pointer types.
svn:r1524
Diffstat (limited to 'src/or/onion.c')
-rw-r--r-- | src/or/onion.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/onion.c b/src/or/onion.c index 7d979d503e..295dc4fec2 100644 --- a/src/or/onion.c +++ b/src/or/onion.c @@ -513,7 +513,7 @@ int onion_extend_cpath(crypt_path_t **head_ptr, cpath_build_state_t *state, rout log_fn(LOG_DEBUG,"Chose router %s for hop %d (exit is %s)", choice->nickname, cur_len, state->chosen_exit); - hop = (crypt_path_t *)tor_malloc_zero(sizeof(crypt_path_t)); + hop = tor_malloc_zero(sizeof(crypt_path_t)); /* link hop into the cpath, at the end. */ onion_append_to_cpath(head_ptr, hop); @@ -568,7 +568,7 @@ onion_skin_create(crypto_pk_env_t *dest_router_key, pkbytes = crypto_pk_keysize(dest_router_key); assert(dhbytes == 128); assert(pkbytes == 128); - challenge = (char *)tor_malloc_zero(ONIONSKIN_CHALLENGE_LEN-CIPHER_KEY_LEN); + challenge = tor_malloc_zero(ONIONSKIN_CHALLENGE_LEN-CIPHER_KEY_LEN); if (crypto_dh_get_public(dh, challenge, dhbytes)) goto err; |