From ffe0aa6a114e83649bb04ff8e09b8025be988de2 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Mon, 9 Mar 2015 07:58:10 +0100 Subject: Fix a build failure on x32 (time_t printfs). As that architecture has 64-bit time_t but only 32-bit longs, printf format causes a warning. Enter -Werror... --- signpost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'signpost.c') diff --git a/signpost.c b/signpost.c index e89a7c6..5650b2b 100644 --- a/signpost.c +++ b/signpost.c @@ -2393,7 +2393,7 @@ int main(int argc, const char *argv[]) } } - sprintf(newseed, "%lu", time(NULL)); + sprintf(newseed, "%lu", (unsigned long) time(NULL)); seedstr = dupstr(newseed); if (id || !stdin_desc) { -- cgit v1.1