From patchwork Mon Jun 24 23:39:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Borowski X-Patchwork-Id: 253994 X-Patchwork-Delegate: shemminger@vyatta.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 69FE12C0084 for ; Tue, 25 Jun 2013 10:41:48 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752304Ab3FYAlo (ORCPT ); Mon, 24 Jun 2013 20:41:44 -0400 Received: from tartarus.angband.pl ([89.206.35.136]:33092 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751044Ab3FYAlo (ORCPT ); Mon, 24 Jun 2013 20:41:44 -0400 X-Greylist: delayed 2662 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 Jun 2013 20:41:43 EDT Received: from kilobyte by tartarus.angband.pl with local (Exim 4.80) (envelope-from <358478a43a7e4870956fd8cd159e27de448b2dbf@tartarus.angband.pl>) id 1UrGdI-0002et-AY; Tue, 25 Jun 2013 01:57:16 +0200 From: Adam Borowski Date: Tue, 25 Jun 2013 01:39:21 +0200 Subject: [PATCH] ip: fix build failure if time_t is not long int To: Stephen Hemminger Cc: netdev@vger.kernel.org Message-Id: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: 358478a43a7e4870956fd8cd159e27de448b2dbf@tartarus.angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This includes x32, and, per Linus' decree, any future arch with longs shorter than 64 bits. Signed-off-by: Adam Borowski --- 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); }