[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r16604: {tor} make r16598 compile on 64-bit too (tor/trunk/src/or)
Author: arma
Date: 2008-08-20 01:15:08 -0400 (Wed, 20 Aug 2008)
New Revision: 16604
Modified:
tor/trunk/src/or/rendcommon.c
tor/trunk/src/or/routerparse.c
Log:
make r16598 compile on 64-bit too
Modified: tor/trunk/src/or/rendcommon.c
===================================================================
--- tor/trunk/src/or/rendcommon.c 2008-08-20 01:37:41 UTC (rev 16603)
+++ tor/trunk/src/or/rendcommon.c 2008-08-20 05:15:08 UTC (rev 16604)
@@ -514,7 +514,7 @@
ipos_base64 = tor_malloc_zero(ipos_len * 2);
if (base64_encode(ipos_base64, ipos_len * 2, ipos, ipos_len)<0) {
log_warn(LD_REND, "Could not encode introduction point string to "
- "base64. length=%d", ipos_len);
+ "base64. length=%d", (int)ipos_len);
tor_free(ipos_base64);
tor_free(ipos);
return -1;
Modified: tor/trunk/src/or/routerparse.c
===================================================================
--- tor/trunk/src/or/routerparse.c 2008-08-20 01:37:41 UTC (rev 16603)
+++ tor/trunk/src/or/routerparse.c 2008-08-20 05:15:08 UTC (rev 16604)
@@ -3464,7 +3464,7 @@
if (strlen(desc) > REND_DESC_MAX_SIZE) {
log_warn(LD_REND, "Descriptor length is %i which exceeds "
"maximum rendezvous descriptor size of %i kilobytes.",
- strlen(desc), REND_DESC_MAX_SIZE);
+ (int)strlen(desc), REND_DESC_MAX_SIZE);
goto err;
}
/* Tokenize descriptor. */