aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-05-03 12:31:35 -0400
committerNick Mathewson <nickm@torproject.org>2018-05-09 14:01:00 -0400
commit15ce5a3e5ab18f44172f1ada3fe1735f28a95c09 (patch)
treeac05340320ce68f71890612d41f652b664f6609f /src/or/main.c
parentc9f07f36bf986f274ac9fc56b5c61bbcc669b22e (diff)
downloadtor-15ce5a3e5ab18f44172f1ada3fe1735f28a95c09.tar.gz
tor-15ce5a3e5ab18f44172f1ada3fe1735f28a95c09.zip
Fix some clang warnings
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index b6035fa765..b8827b947d 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2538,7 +2538,7 @@ update_current_time(time_t now)
monotime_coarse_diff_msec32(&last_updated,
&current_second_last_changed);
const int monotime_sec_passed = monotime_msec_passed / 1000;
- const int discrepency = monotime_sec_passed - seconds_elapsed;
+ const int discrepency = monotime_sec_passed - (int)seconds_elapsed;
/* If the monotonic clock deviates from time(NULL), we have a couple of
* possibilities. On some systems, this means we have been suspended or
* sleeping. Everywhere, it can mean that the wall-clock time has