summaryrefslogtreecommitdiffstats
path: root/sbin/routed/table.c
diff options
context:
space:
mode:
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