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:
@@ -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) {
|
||||
/*
|
||||
|
Reference in New Issue
Block a user