summaryrefslogtreecommitdiffstats
path: root/sbin/routed
diff options
context:
space:
mode:
authoruqs <uqs@FreeBSD.org>2010-02-27 10:17:27 +0000
committeruqs <uqs@FreeBSD.org>2010-02-27 10:17:27 +0000
commit5507bf921433cbb45958f3e841eea5a0959dba8b (patch)
tree4f66df0e7569ce59346b939de108284db51e91a6 /sbin/routed
parentcda83d34a93e726f393334db2387227f1b55efa9 (diff)
downloadFreeBSD-src-5507bf921433cbb45958f3e841eea5a0959dba8b.zip
FreeBSD-src-5507bf921433cbb45958f3e841eea5a0959dba8b.tar.gz
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)
Diffstat (limited to 'sbin/routed')
-rw-r--r--sbin/routed/Makefile15
-rw-r--r--sbin/routed/if.c6
-rw-r--r--sbin/routed/rtquery/Makefile2
3 files changed, 12 insertions, 11 deletions
diff --git a/sbin/routed/Makefile b/sbin/routed/Makefile
index 8c7559f..8f2a819 100644
--- a/sbin/routed/Makefile
+++ b/sbin/routed/Makefile
@@ -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 <bsd.prog.mk>
diff --git a/sbin/routed/if.c b/sbin/routed/if.c
index 1c185d7..9160e6f 100644
--- a/sbin/routed/if.c
+++ b/sbin/routed/if.c
@@ -29,6 +29,8 @@
* $FreeBSD$
*/
+#include <stdint.h>
+
#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);
}
diff --git a/sbin/routed/rtquery/Makefile b/sbin/routed/rtquery/Makefile
index 7076158..458d1ca 100644
--- a/sbin/routed/rtquery/Makefile
+++ b/sbin/routed/rtquery/Makefile
@@ -6,6 +6,6 @@ PROG= rtquery
MAN= rtquery.8
LDADD= -lmd
DPADD= ${LIBMD}
-WARNS?= 0
+WARNS?= 3
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud