]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: fix build failure if time_t is not long int
authorAdam Borowski <kilobyte@angband.pl>
Mon, 24 Jun 2013 23:39:21 +0000 (01:39 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 25 Jun 2013 20:36:56 +0000 (13:36 -0700)
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

index adef7740872cb41df8214dd5ca595828030dbde7..d3c56d3dab4748d9550329aeed64829964ce8879 100644 (file)
@@ -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);
                        }