[or-cvs] resolve cygwin warnings for pre19

Roger Dingledine arma at seul.org
Thu Jan 8 22:48:20 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	onion.c 
Log Message:
resolve cygwin warnings for pre19


Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -u -d -r1.116 -r1.117
--- onion.c	5 Jan 2004 05:23:03 -0000	1.116
+++ onion.c	8 Jan 2004 22:48:18 -0000	1.117
@@ -132,14 +132,14 @@
   memcpy(cell.payload, payload, ONIONSKIN_REPLY_LEN);
 
   log_fn(LOG_INFO,"init digest forward %d, backward %d.",
-         *(uint32_t*)(keys), *(uint32_t*)(keys+20));
+         (int)*(uint32_t*)(keys), (int)*(uint32_t*)(keys+20));
   circ->n_digest = crypto_new_digest_env(CRYPTO_SHA1_DIGEST);
   crypto_digest_add_bytes(circ->n_digest, keys, 20);
   circ->p_digest = crypto_new_digest_env(CRYPTO_SHA1_DIGEST);
   crypto_digest_add_bytes(circ->p_digest, keys+20, 20);
 
   log_fn(LOG_DEBUG,"init cipher forward %d, backward %d.",
-         *(uint32_t*)(keys+40), *(uint32_t*)(keys+40+16));
+         (int)*(uint32_t*)(keys+40), (int)*(uint32_t*)(keys+40+16));
   if (!(circ->n_crypto =
         crypto_create_init_cipher(CIRCUIT_CIPHER,keys+40,iv,0))) {
     log_fn(LOG_WARN,"Cipher initialization failed (n).");



More information about the tor-commits mailing list