Cast time_t to long for printing with %ld
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 17:13:38 +0000 (19:13 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 8 May 2013 17:13:38 +0000 (19:13 +0200)
struct timeval member tv_sec used to be long, but POSIX made it
time_t.

src/lib/lwp/sel.c

index 60316f94afb8ddb7179a2e5b7fafa88c313a51bc..3c9addcf396479d1b305b4e5ff96c291c7f503ee 100644 (file)
@@ -243,7 +243,7 @@ lwpSelect(void *arg)
            if (tv.tv_sec < 0)
                tv.tv_sec = 0;
        }
-       lwpStatus(us, "selecting; sleep %ld secs", tv.tv_sec);
+       lwpStatus(us, "selecting; sleep %ld secs", (long)tv.tv_sec);
 
        memcpy(&readmask, &LwpReadfds, sizeof(fd_set));
        memcpy(&writemask, &LwpWritefds, sizeof(fd_set));