All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ip: fix build failure if time_t is not long int
@ 2013-06-24 23:39 Adam Borowski
  0 siblings, 0 replies; only message in thread
From: Adam Borowski @ 2013-06-24 23:39 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

This includes x32, and, per Linus' decree, any future arch with longs
shorter than 64 bits.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
---
 ip/iproute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ip/iproute.c b/ip/iproute.c
index adef774..d3c56d3 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);
 			}
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-25  0:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-24 23:39 [PATCH] ip: fix build failure if time_t is not long int Adam Borowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.