aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-07-14 11:33:12 -0400
committerNick Mathewson <nickm@torproject.org>2017-07-14 11:33:12 -0400
commit9a1338d9df938fba0c3e56e216dfe07237ed934b (patch)
tree15622363ccccceff5e9e8aef4b660ac447181029 /src
parentd0816a040dbb9a5e18b76b3fb30011b19f6660b0 (diff)
downloadtor-9a1338d9df938fba0c3e56e216dfe07237ed934b.tar.gz
tor-9a1338d9df938fba0c3e56e216dfe07237ed934b.zip
Fix 32-bit warnings in hs_common.c
Diffstat (limited to 'src')
-rw-r--r--src/or/hs_common.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index 22a845f911..27330bfcdb 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -459,9 +459,10 @@ hs_parse_address(const char *address, ed25519_public_key_t *key_out,
/* Obvious length check. */
if (strlen(address) != HS_SERVICE_ADDR_LEN_BASE32) {
log_warn(LD_REND, "Service address %s has an invalid length. "
- "Expected %ld but got %lu.",
- escaped_safe_str(address), HS_SERVICE_ADDR_LEN_BASE32,
- strlen(address));
+ "Expected %lu but got %lu.",
+ escaped_safe_str(address),
+ (unsigned long) HS_SERVICE_ADDR_LEN_BASE32,
+ (unsigned long) strlen(address));
goto invalid;
}