chiark / gitweb /
util: properly divide in 64bit in format_timestamp()
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Jun 2010 22:14:12 +0000 (00:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Jun 2010 22:14:12 +0000 (00:14 +0200)
fixme
src/util.c

diff --git a/fixme b/fixme
index 29a3c11bcf79a8240cbe0d9f28469184192ed9cc..8384576707f80d222cceb11d5ba804187779cf24 100644 (file)
--- a/fixme
+++ b/fixme
@@ -55,8 +55,6 @@
 
 * selinux
 
-* User= and friends needs to understand %i and similar replacements
-
 * make systemd bus activatable
 
 * systemd-sysvinit as package
index 78d8d5d9c5d99fd1a91d72858fda6d17a09407fe..766aa02965825651481d6bdf4146372a72f50def 100644 (file)
@@ -1499,7 +1499,7 @@ char *format_timestamp(char *buf, size_t l, usec_t t) {
         if (t <= 0)
                 return NULL;
 
-        sec = (time_t) t / USEC_PER_SEC;
+        sec = (time_t) (t / USEC_PER_SEC);
 
         if (strftime(buf, l, "%a, %d %b %Y %H:%M:%S %z", localtime_r(&sec, &tm)) <= 0)
                 return NULL;