diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-03-28 21:41:59 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-28 21:41:59 +0200 |
commit | be778a65dfd85c34481af32fcfb0338522bacd1e (patch) | |
tree | 00555f96687685328e81ccacb080a46f07d2ee3f /src/or/dirserv.c | |
parent | 208c2a5c74e5ae4e53a9c6555f5519816826d490 (diff) | |
download | tor-be778a65dfd85c34481af32fcfb0338522bacd1e.tar.gz tor-be778a65dfd85c34481af32fcfb0338522bacd1e.zip |
Fix i386 compilation from spooling patch. I seem to be good at breaking that.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r-- | src/or/dirserv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index b78af307ce..0e899a759c 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -3661,7 +3661,7 @@ void dirserv_spool_remove_missing_and_guess_size(dir_connection_t *conn, time_t cutoff, int compression, - uint64_t *size_out, + size_t *size_out, int *n_expired_out) { if (BUG(!conn)) @@ -3693,8 +3693,9 @@ dirserv_spool_remove_missing_and_guess_size(dir_connection_t *conn, } } SMARTLIST_FOREACH_END(spooled); - if (size_out) - *size_out = total; + if (size_out) { + *size_out = (total > SIZE_MAX) ? SIZE_MAX : (size_t)total; + } if (n_expired_out) *n_expired_out = n_expired; } |