diff options
-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 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> |