diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-07 18:26:23 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-07-07 18:26:23 +0000 |
commit | bca8ede36193523f5e509e218d1976dc9b8386e2 (patch) | |
tree | 8021052d902e951ea77cf9a839e25b3062a6b5bc /sbin/routed/table.c | |
parent | f450dee1afdaa407e9eb35b9d02efd9642a245fa (diff) |
major -Wall cleanup, almost complete
Diffstat (limited to 'sbin/routed/table.c')
-rw-r--r-- | sbin/routed/table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/routed/table.c b/sbin/routed/table.c index 7354e264191..d19310b51d5 100644 --- a/sbin/routed/table.c +++ b/sbin/routed/table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: table.c,v 1.5 1997/07/30 23:28:45 deraadt Exp $ */ +/* $OpenBSD: table.c,v 1.6 2001/07/07 18:26:20 deraadt Exp $ */ /* * Copyright (c) 1983, 1988, 1993 @@ -1674,7 +1674,7 @@ rtswitch(struct rt_entry *rt, return; swap = rt->rt_spares[0]; - (void)sprintf(label, "Use #%d", rts - rt->rt_spares); + (void)sprintf(label, "Use #%d", (int)(rts - rt->rt_spares)); rtchange(rt, rt->rt_state & ~(RS_NET_SYN | RS_RDISC), rts->rts_gate, rts->rts_router, rts->rts_metric, rts->rts_tag, rts->rts_ifp, rts->rts_time, label); |