summary refs log tree commit diff
diff options
context:
space:
mode:
-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;