make r16598 compile on 64-bit too

svn:r16604
This commit is contained in:
Roger Dingledine 2008-08-20 05:15:08 +00:00
parent a8035b5fc3
commit cc8b2247bf
2 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ rend_encode_v2_descriptors(smartlist_t *descs_out,
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;

View File

@ -3464,7 +3464,7 @@ rend_parse_v2_service_descriptor(rend_service_descriptor_t **parsed_out,
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. */