mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
time overhaul:
- ap_time_t is a 64-bit scalar, microseconds since epoch - ap_exploded_time_t corresponds to struct tm with a few extras probably broken on anything except linux. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84413 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1374,10 +1374,9 @@ API_EXPORT(int) ap_is_initial_req(request_rec *r)
|
||||
* Function to set the r->mtime field to the specified value if it's later
|
||||
* than what's already there.
|
||||
*/
|
||||
API_EXPORT(ap_time_t *) ap_update_mtime(request_rec *r, ap_time_t *dependency_mtime)
|
||||
API_EXPORT(void) ap_update_mtime(request_rec *r, ap_time_t dependency_mtime)
|
||||
{
|
||||
if (ap_timecmp(r->mtime, dependency_mtime) == APR_LESS) {
|
||||
r->mtime = dependency_mtime;
|
||||
if (r->mtime < dependency_mtime) {
|
||||
r->mtime = dependency_mtime;
|
||||
}
|
||||
return r->mtime;
|
||||
}
|
||||
|
Reference in New Issue
Block a user