diff options
author | Ulrich Spörlein <uqs@FreeBSD.org> | 2010-02-27 10:17:27 +0000 |
---|---|---|
committer | Ulrich Spörlein <uqs@FreeBSD.org> | 2010-02-27 10:17:27 +0000 |
commit | b108792d900ae9749988b0053f534b0211ab25d4 (patch) | |
tree | 4f66df0e7569ce59346b939de108284db51e91a6 /sbin/routed | |
parent | 115d0d95a1c116c7a9e9c09e2ba031303a7ed3a9 (diff) | |
download | src-b108792d900ae9749988b0053f534b0211ab25d4.tar.gz src-b108792d900ae9749988b0053f534b0211ab25d4.zip |
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)
Notes
Notes:
svn path=/head/; revision=204405
Diffstat (limited to 'sbin/routed')
-rw-r--r-- | sbin/routed/Makefile | 15 | ||||
-rw-r--r-- | sbin/routed/if.c | 6 | ||||
-rw-r--r-- | sbin/routed/rtquery/Makefile | 2 |
3 files changed, 12 insertions, 11 deletions
diff --git a/sbin/routed/Makefile b/sbin/routed/Makefile index 8c7559ffeb89..8f2a8193318e 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 1c185d76fe58..9160e6f2bb13 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 7076158727f6..458d1caa594f 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> |