summaryrefslogtreecommitdiffstats
path: root/sbin/routed/table.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2009-04-05 14:15:05 +0000
committerphk <phk@FreeBSD.org>2009-04-05 14:15:05 +0000
commitab2775f3db00244b047f362ba89ba36865f7a02a (patch)
tree5c07af6065ffcb207aa355abdb2bc53123209ccd /sbin/routed/table.c
parent8c0066c04042edc19879610fab48e9dbde8014c5 (diff)
downloadFreeBSD-src-ab2775f3db00244b047f362ba89ba36865f7a02a.zip
FreeBSD-src-ab2775f3db00244b047f362ba89ba36865f7a02a.tar.gz
Kick WARNS level up to 6 by fixing various trivial warnings.
Diffstat (limited to 'sbin/routed/table.c')
-rw-r--r--sbin/routed/table.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/routed/table.c b/sbin/routed/table.c
index 7e30ebd1..33f8332 100644
--- a/sbin/routed/table.c
+++ b/sbin/routed/table.c
@@ -1631,7 +1631,7 @@ rtinit(void)
/* Initialize the radix trees */
max_keylen = sizeof(struct sockaddr_in);
rn_init();
- rn_inithead((void**)&rhead, 32);
+ rn_inithead(&rhead, 32);
/* mark all of the slots in the table free */
ag_avail = ag_slots;
@@ -2124,8 +2124,8 @@ age(naddr bad_gate)
" %ld:%ld",
ifp->int_name,
naddr_ntoa(ifp->int_dstaddr),
- (now.tv_sec - ifp->int_act_time)/60,
- (now.tv_sec - ifp->int_act_time)%60);
+ (long)(now.tv_sec - ifp->int_act_time)/60,
+ (long)(now.tv_sec - ifp->int_act_time)%60);
if_sick(ifp);
}
OpenPOWER on IntegriCloud