summary refs log tree commit diff
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2014-07-30 13:59:55 +0000
committerGerrit Pape <pape@smarden.org>2014-07-30 14:09:48 +0000
commitda3cf9c37ae46d7553e363a81fb14838b150c885 (patch)
treed3a60134855d5ed1b7c3301673759e25f89a6562
parentfea314879f34ebf1065ff3abfc9dc5e4ea746419 (diff)
downloadrunit-da3cf9c37ae46d7553e363a81fb14838b150c885.tar.gz
runit-da3cf9c37ae46d7553e363a81fb14838b150c885.tar.xz
runit-da3cf9c37ae46d7553e363a81fb14838b150c885.zip
* fmt_ptime.c: 64 bits time_t fix for svlogd (tnx Jérémie
    Courrèges-Anglas).

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
-rw-r--r--package/CHANGES2
-rw-r--r--src/fmt_ptime.c2
2 files changed, 3 insertions, 1 deletions
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;