From owner-svn-src-head@FreeBSD.ORG Sat Feb 27 10:17:29 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41408106566B; Sat, 27 Feb 2010 10:17:28 +0000 (UTC) (envelope-from uqs@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 167998FC2C; Sat, 27 Feb 2010 10:17:28 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o1RAHR0p030093; Sat, 27 Feb 2010 10:17:27 GMT (envelope-from uqs@svn.freebsd.org) Received: (from uqs@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o1RAHRPl030089; Sat, 27 Feb 2010 10:17:27 GMT (envelope-from uqs@svn.freebsd.org) Message-Id: <201002271017.o1RAHRPl030089@svn.freebsd.org> From: Ulrich Spoerlein Date: Sat, 27 Feb 2010 10:17:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r204405 - in head/sbin/routed: . rtquery X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Feb 2010 10:17:29 -0000 Author: uqs Date: Sat Feb 27 10:17:27 2010 New Revision: 204405 URL: http://svn.freebsd.org/changeset/base/204405 Log: routed(8)/rtquery(8) bump/demote to WARNS=3 for all archs - The MACHINE_ARCH check is not exhaustive (missing at least powerpc), and generally not worth maintaining. - While here, fix whitespace and ordering of the Makefile PR: bin/140081 Approved by: ed (co-mentor) Modified: head/sbin/routed/Makefile head/sbin/routed/if.c head/sbin/routed/rtquery/Makefile Modified: head/sbin/routed/Makefile ============================================================================== --- head/sbin/routed/Makefile Sat Feb 27 10:16:14 2010 (r204404) +++ head/sbin/routed/Makefile Sat Feb 27 10:17:27 2010 (r204405) @@ -1,14 +1,13 @@ # Make `routed` for FreeBSD # $FreeBSD$ -PROG= routed -SRCS= if.c input.c main.c output.c parms.c radix.c rdisc.c table.c trace.c -MAN= routed.8 -SUBDIR= rtquery -LDADD= -lmd +PROG= routed +MAN= routed.8 +SRCS= if.c input.c main.c output.c parms.c radix.c rdisc.c table.c trace.c +WARNS?= 3 DPADD= ${LIBMD} -.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "amd64" -WARNS?= 0 -.endif +LDADD= -lmd + +SUBDIR= rtquery .include Modified: head/sbin/routed/if.c ============================================================================== --- head/sbin/routed/if.c Sat Feb 27 10:16:14 2010 (r204404) +++ head/sbin/routed/if.c Sat Feb 27 10:17:27 2010 (r204405) @@ -29,6 +29,8 @@ * $FreeBSD$ */ +#include + #include "defs.h" #include "pathnames.h" @@ -948,9 +950,9 @@ ifinit(void) } else if (now.tv_sec>(ifp->int_data.ts + CHECK_BAD_INTERVAL)) { trace_act("interface %s has been off" - " %ld seconds; forget it", + " %jd seconds; forget it", ifp->int_name, - (long)now.tv_sec- + (intmax_t)now.tv_sec - ifp->int_data.ts); ifdel(ifp); } Modified: head/sbin/routed/rtquery/Makefile ============================================================================== --- head/sbin/routed/rtquery/Makefile Sat Feb 27 10:16:14 2010 (r204404) +++ head/sbin/routed/rtquery/Makefile Sat Feb 27 10:17:27 2010 (r204405) @@ -6,6 +6,6 @@ PROG= rtquery MAN= rtquery.8 LDADD= -lmd DPADD= ${LIBMD} -WARNS?= 0 +WARNS?= 3 .include