diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-12-15 21:35:52 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-12-15 21:35:52 +0000 |
commit | 4885e904906dcc967e3597301c17ad95bb77b5e0 (patch) | |
tree | 2991699afdd3ab55fdcd1c50965f4c0443786070 /src/or/circuit.c | |
parent | a5aa80cc419d6831ce339496a1c644f2347496a2 (diff) | |
download | tor-4885e904906dcc967e3597301c17ad95bb77b5e0.tar tor-4885e904906dcc967e3597301c17ad95bb77b5e0.tar.gz |
Make compile warning-free on cygwin
svn:r936
Diffstat (limited to 'src/or/circuit.c')
-rw-r--r-- | src/or/circuit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/or/circuit.c b/src/or/circuit.c index d3fa4a3eb..0d908bf20 100644 --- a/src/or/circuit.c +++ b/src/or/circuit.c @@ -663,7 +663,9 @@ void circuit_dump_details(int severity, circuit_t *circ, int poll_index, log(severity,"Building: desired len %d, planned exit node %s.", circ->build_state->desired_path_len, circ->build_state->chosen_exit); for(hop=circ->cpath;hop->next != circ->cpath; hop=hop->next) - log(severity,"hop: state %d, addr %d, port %d", hop->state, hop->addr, hop->port); + log(severity,"hop: state %d, addr %x, port %d", hop->state, + (unsigned int)hop->addr, + (int)hop->port); } } @@ -989,7 +991,8 @@ int circuit_finish_handshake(circuit_t *circ, char *reply) { crypto_dh_free(hop->handshake_state); /* don't need it anymore */ hop->handshake_state = NULL; - log_fn(LOG_DEBUG,"hop %d init cipher forward %d, backward %d.", (uint32_t)hop, *(uint32_t*)keys, *(uint32_t*)(keys+16)); + log_fn(LOG_DEBUG,"hop %d init cipher forward %u, backward %u.", + (int)hop, (unsigned)*(uint32_t*)keys, (unsigned) *(uint32_t*)(keys+16)); if (!(hop->f_crypto = crypto_create_init_cipher(CIRCUIT_CIPHER,keys,iv,1))) { log(LOG_WARN,"forward cipher initialization failed."); |