]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
slightly happier on 64-bit archs
authorRoger Dingledine <arma@torproject.org>
Tue, 24 Jun 2003 05:17:48 +0000 (05:17 +0000)
committerRoger Dingledine <arma@torproject.org>
Tue, 24 Jun 2003 05:17:48 +0000 (05:17 +0000)
svn:r349

src/or/circuit.c

index f39cb367ab30d239c9df5c4ca8d6998da70477d3..eab3d78904a8133668e2f6cd31ab3a7522dd01c6 100644 (file)
@@ -869,7 +869,7 @@ 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.", (int)hop, *(int*)keys, *(int*)(keys+16));
+  log_fn(LOG_DEBUG,"hop %d init cipher forward %d, backward %d.", (uint32_t)hop, *(uint32_t*)keys, *(uint32_t*)(keys+16));
   if (!(hop->f_crypto =
         crypto_create_init_cipher(DEFAULT_CIPHER,keys,iv,1))) {
     log(LOG_ERR,"Cipher initialization failed.");