From: Adam Borowski Date: Mon, 24 Jun 2013 23:39:21 +0000 (+0200) Subject: ip: fix build failure if time_t is not long int X-Git-Tag: v3.10.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d8a75293c61e3f03f365398a8745f0d71331d02;p=thirdparty%2Fiproute2.git ip: fix build failure if time_t is not long int This includes x32, and, per Linus' decree, any future arch with longs shorter than 64 bits. Signed-off-by: Adam Borowski --- diff --git a/ip/iproute.c b/ip/iproute.c index adef77408..d3c56d3da 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -1330,7 +1330,7 @@ static int iproute_list_flush_or_save(int argc, char **argv, int action) if (time(0) - start > 30) { printf("\n*** Flush not completed after %ld seconds, %d entries remain ***\n", - time(0) - start, filter.flushed); + (long)(time(0) - start), filter.flushed); exit(1); }