fade.c: Fix a gcc warning on FreeBSD.
authorAndre Noll <maan@systemlinux.org>
Tue, 7 Jul 2009 13:53:59 +0000 (15:53 +0200)
committerAndre Noll <maan@systemlinux.org>
Tue, 7 Jul 2009 13:53:59 +0000 (15:53 +0200)
fade.c:220: warning: long unsigned int format, time_t arg (arg 4)

fade.c

diff --git a/fade.c b/fade.c
index 7f88447..8fb02d4 100644 (file)
--- a/fade.c
+++ b/fade.c
@@ -217,7 +217,7 @@ static int sweet_dreams(void)
                tm->tm_sec = 0;
        } else {
                t1 += 9 * 60 * 60; /* nine hours from now */
-               PARA_INFO_LOG("default wake time: %lu\n", t1);
+               PARA_INFO_LOG("default wake time: %lu\n", (long unsigned)t1);
                tm = localtime(&t1);
        }
        wake_time_epoch = mktime(tm);