summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-04-30 17:14:40 -0400
committerNick Mathewson <nickm@torproject.org>2018-04-30 17:14:40 -0400
commit3a2470762d352484d8fe163fe9d895647b4f02be (patch)
tree70f8079ccd792e912eb6e2c950ce9591435a4a3f /src
parent72124dc1ef68b870ddec615249e25ddb72d6d4cb (diff)
downloadtor-3a2470762d352484d8fe163fe9d895647b4f02be.tar.gz
tor-3a2470762d352484d8fe163fe9d895647b4f02be.zip
Add a cast to make clang happy.
Diffstat (limited to 'src')
-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 010e7200c1..f1b8308304 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2011,7 +2011,7 @@ save_state_callback(time_t now, const or_options_t *options)
*/
return PERIODIC_EVENT_NO_UPDATE;
} else {
- return next_write - now;
+ return (int)(next_write - now);
}
}