trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject [trafficserver] branch 7.1.x updated: get_creation_time() takes *time_t, not *long
Date Wed, 18 Jan 2017 00:55:29 GMT
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 7.1.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/7.1.x by this push:
       new  fad0324   get_creation_time() takes *time_t, not *long
fad0324 is described below

commit fad0324f75d409efad08a60e392a9c6052e79650
Author: Jack Bates <jack@nottheoilrig.com>
AuthorDate: Fri Jan 13 11:02:53 2017 -0700

    get_creation_time() takes *time_t, not *long
    
    time_t may or may not be equivalent to long,
    it's up to the implementation.
    
    Fixes #1311
    
    (cherry picked from commit 8ace435557f11796437febd932d5e18fd790be70)
---
 lib/ts/BaseLogFile.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ts/BaseLogFile.cc b/lib/ts/BaseLogFile.cc
index 062eb63..bd4d2d6 100644
--- a/lib/ts/BaseLogFile.cc
+++ b/lib/ts/BaseLogFile.cc
@@ -238,7 +238,7 @@ BaseLogFile::roll(long interval_start, long interval_end)
 int
 BaseLogFile::roll()
 {
-  long start;
+  time_t start;
   time_t now = time(nullptr);
 
   if (!m_meta_info || !m_meta_info->get_creation_time(&start))

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message