Use time(&now) instead of now = time(NULL) when storing the current

time in a time_t (better compiler error checking).
Better parsing and printing of 64-bit time_t on 32-bit platforms.
This commit is contained in:
Todd C. Miller
2013-04-23 13:15:22 -04:00
parent 2b1b9ae72d
commit 95b50f84af
10 changed files with 42 additions and 28 deletions

View File

@@ -340,7 +340,7 @@ timestamp_status_internal(bool removing)
if (def_timestamp_timeout < 0) {
status = TS_CURRENT;
} else {
now = time(NULL);
time(&now);
if (def_timestamp_timeout &&
now - mtime.tv_sec < 60 * def_timestamp_timeout) {
/*