diff options
author | uqs <uqs@FreeBSD.org> | 2010-02-27 10:17:27 +0000 |
---|---|---|
committer | uqs <uqs@FreeBSD.org> | 2010-02-27 10:17:27 +0000 |
commit | 5507bf921433cbb45958f3e841eea5a0959dba8b (patch) | |
tree | 4f66df0e7569ce59346b939de108284db51e91a6 /sbin/routed/if.c | |
parent | cda83d34a93e726f393334db2387227f1b55efa9 (diff) | |
download | FreeBSD-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/if.c')
-rw-r--r-- | sbin/routed/if.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); } |