From da3cf9c37ae46d7553e363a81fb14838b150c885 Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Wed, 30 Jul 2014 13:59:55 +0000 Subject: * fmt_ptime.c: 64 bits time_t fix for svlogd (tnx Jérémie Courrèges-Anglas). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch fetched from the OpenBSD ports tree http://openbsd.cs.toronto.edu/cgi-bin/cvsweb/ports/sysutils/runit/patches/patch-src_fmt_ptime_c?rev=1.1&content-type=text/x-cvsweb-markup --- package/CHANGES | 2 ++ src/fmt_ptime.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/CHANGES b/package/CHANGES index b3f5846..ffdb700 100644 --- a/package/CHANGES +++ b/package/CHANGES @@ -1,5 +1,7 @@ 2.1.2 + * fmt_ptime.c: 64 bits time_t fix for svlogd (tnx Jérémie + Courrèges-Anglas). * sv.c: fix typo that may lead to wrong output from sv when reporting status of multiple service directories. * doc/index.html: add deepOfix Mail Server to list of distributions diff --git a/src/fmt_ptime.c b/src/fmt_ptime.c index e538b35..2ab5725 100644 --- a/src/fmt_ptime.c +++ b/src/fmt_ptime.c @@ -4,7 +4,7 @@ unsigned int fmt_ptime2(char *s, struct taia *ta, char sep) { struct tm *t; - unsigned long u; + time_t u; if (ta->sec.x < 4611686018427387914ULL) return(0); /* impossible? */ u =ta->sec.x -4611686018427387914ULL; -- cgit 1.4.1