trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nottheoil...@apache.org
Subject [trafficserver] branch master updated: get_creation_time() takes *time_t, not *long
Date Mon, 16 Jan 2017 16:02:31 GMT
This is an automated email from the ASF dual-hosted git repository.

nottheoilrig pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  8ace435   get_creation_time() takes *time_t, not *long
8ace435 is described below

commit 8ace435557f11796437febd932d5e18fd790be70
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
---
 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