diff options
author | dana koch <dsk@google.com> | 2014-05-12 09:16:06 +1000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-05-11 23:36:00 -0400 |
commit | d6e6c63baf4409766ffd82fc859187b6285b093f (patch) | |
tree | 0a38dfcecc034cc33348a238cc0a210d840f2e67 /src/or/directory.c | |
parent | de2010e9c229cb130c30659aa62122529c125637 (diff) | |
download | tor-d6e6c63baf4409766ffd82fc859187b6285b093f.tar.gz tor-d6e6c63baf4409766ffd82fc859187b6285b093f.zip |
Quench clang's complaints with -Wshorten-64-to-32 when time_t is not long.
On OpenBSD 5.4, time_t is a 32-bit integer. These instances contain
implicit treatment of long and time_t as comparable types, so explicitly
cast to time_t.
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 428fd01be4..b94aac45b6 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -2299,7 +2299,7 @@ write_http_response_header_impl(dir_connection_t *conn, ssize_t length, } if (cache_lifetime > 0) { char expbuf[RFC1123_TIME_LEN+1]; - format_rfc1123_time(expbuf, now + cache_lifetime); + format_rfc1123_time(expbuf, (time_t)(now + cache_lifetime)); /* We could say 'Cache-control: max-age=%d' here if we start doing * http/1.1 */ tor_snprintf(cp, sizeof(tmp)-(cp-tmp), |