]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
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 7f884473bcd1d0c33b4ab39d9aa5c43684fd5cf4..8fb02d402f5881542409b9e22583fc4aa191b146 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 */
                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);
                tm = localtime(&t1);
        }
        wake_time_epoch = mktime(tm);