summaryrefslogtreecommitdiff
path: root/src/or/hs_circuit.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-08-11 15:08:45 -0400
committerDavid Goulet <dgoulet@torproject.org>2017-08-11 15:08:45 -0400
commit257f50b22fbaf9c9cb5859e257437b24af46c7ab (patch)
treead1459ed6d6ec0fac7c95d20abbfd331317e62c2 /src/or/hs_circuit.c
parent598bf986b60cbbb447aa288eb8c05dcaca282d0f (diff)
downloadtor-257f50b22fbaf9c9cb5859e257437b24af46c7ab.tar.gz
tor-257f50b22fbaf9c9cb5859e257437b24af46c7ab.zip
Make Windows happy for time_t printf format
Our Windows compiler treats "time_t" as long long int but Linux likes it long int so cast those to make Windows happy. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_circuit.c')
-rw-r--r--src/or/hs_circuit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/hs_circuit.c b/src/or/hs_circuit.c
index d0265dc548..6d1cdd4eb0 100644
--- a/src/or/hs_circuit.c
+++ b/src/or/hs_circuit.c
@@ -589,7 +589,7 @@ can_relaunch_service_rendezvous_point(const origin_circuit_t *circ)
safe_str_client(
extend_info_describe(circ->build_state->chosen_exit)),
circ->build_state->failure_count,
- circ->build_state->expiry_time);
+ (long int) circ->build_state->expiry_time);
goto disallow;
}
@@ -978,7 +978,8 @@ hs_circ_handle_introduce2(const hs_service_t *service,
* cell), we are already trying to connect to that rend point (and may
* have already succeeded); drop this cell. */
log_info(LD_REND, "We received an INTRODUCE2 cell with same REND_COOKIE "
- "field %ld seconds ago. Dropping cell.", elapsed);
+ "field %ld seconds ago. Dropping cell.",
+ (long int) elapsed);
goto done;
}