[systemd-commits] fixme src/util.c

Lennart Poettering lennart at kemper.freedesktop.org
Fri Jun 18 15:14:19 PDT 2010


 fixme      |    2 --
 src/util.c |    2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit f872ec33973b2f508d36939e917ffafd47a87b07
Author: Lennart Poettering <lennart at poettering.net>
Date:   Sat Jun 19 00:14:12 2010 +0200

    util: properly divide in 64bit in format_timestamp()

diff --git a/fixme b/fixme
index 29a3c11..8384576 100644
--- 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
diff --git a/src/util.c b/src/util.c
index 78d8d5d..766aa02 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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;


More information about the systemd-commits mailing list