Date: Thu, 29 Oct 2009 14:01:00 +0100 (CET) From: Ulrich Spörlein <uqs@spoerlein.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/140081: routed(8) increase to WARNS=3 Message-ID: <200910291301.n9TD10uC009388@roadrunner.spoerlein.net> Resent-Message-ID: <200910291310.n9TDA1qJ097929@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 140081
>Category: bin
>Synopsis: routed(8) increase to WARNS=3
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 29 13:10:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Ulrich Spörlein
>Release: FreeBSD 9.0-CURRENT i386
>Organization:
>Environment:
>Description:
- Bump WARNS, also for rtquery subdir
>How-To-Repeat:
>Fix:
--- routed.diff begins here ---
diff -r 603a0689809d -r 2d930e159d74 sbin/routed/Makefile
--- a/sbin/routed/Makefile Thu Oct 29 12:23:33 2009 +0100
+++ b/sbin/routed/Makefile Thu Oct 29 13:59:58 2009 +0100
@@ -8,7 +8,7 @@
LDADD= -lmd
DPADD= ${LIBMD}
.if ${MACHINE_ARCH} != "i386" && ${MACHINE_ARCH} != "amd64"
-WARNS?= 0
+WARNS?= 3
.endif
.include <bsd.prog.mk>
diff -r 603a0689809d -r 2d930e159d74 sbin/routed/if.c
--- a/sbin/routed/if.c Thu Oct 29 12:23:33 2009 +0100
+++ b/sbin/routed/if.c Thu Oct 29 13:59:58 2009 +0100
@@ -29,6 +29,8 @@
* $FreeBSD$
*/
+#include <stdint.h>
+
#include "defs.h"
#include "pathnames.h"
@@ -948,9 +950,9 @@
} 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);
}
diff -r 603a0689809d -r 2d930e159d74 sbin/routed/rtquery/Makefile
--- a/sbin/routed/rtquery/Makefile Thu Oct 29 12:23:33 2009 +0100
+++ b/sbin/routed/rtquery/Makefile Thu Oct 29 13:59:58 2009 +0100
@@ -6,6 +6,6 @@
MAN= rtquery.8
LDADD= -lmd
DPADD= ${LIBMD}
-WARNS?= 0
+WARNS?= 3
.include <bsd.prog.mk>
--- routed.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910291301.n9TD10uC009388>
