mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
make r16598 compile on 64-bit too
svn:r16604
This commit is contained in:
parent
a8035b5fc3
commit
cc8b2247bf
@ -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;
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user