summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2007-12-28 19:19:23 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2007-12-28 19:19:23 +0000
commit38e59237d6619f4e0ca14711f1f7983d2f291932 (patch)
tree1d4a50558b1173ed9a03a719d4d3ceda2dc1da91 /sbin
parent734f0e43eb9ebd6c76d5836c1d9affa659f7117f (diff)
printf field widths are always int, so add a cast to remove
"warning: field width is not type int" "looks good" otto@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/routed/trace.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/routed/trace.c b/sbin/routed/trace.c
index 24ae7945a7d..0fd67ce5627 100644
--- a/sbin/routed/trace.c
+++ b/sbin/routed/trace.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trace.c,v 1.15 2005/04/12 15:26:47 cloder Exp $ */
+/* $OpenBSD: trace.c,v 1.16 2007/12/28 19:19:22 chl Exp $ */
/* $NetBSD: trace.c,v 1.13 1995/06/20 22:28:03 christos Exp $ */
/*
@@ -33,7 +33,7 @@
#if !defined(lint)
static char sccsid[] = "@(#)trace.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: trace.c,v 1.15 2005/04/12 15:26:47 cloder Exp $";
+static char rcsid[] = "$OpenBSD: trace.c,v 1.16 2007/12/28 19:19:22 chl Exp $";
#endif
#define RIPCMDS
@@ -662,7 +662,7 @@ trace_change(struct rt_entry *rt,
AGE_RT(rt->rt_state, rt->rt_ifp) ? ts(rt->rt_time) : "");
(void)fprintf(ftrace, "%*s %19s%-16s ",
- strlen(label), "", "",
+ (int)strlen(label), "", "",
rt->rt_gate != gate ? naddr_ntoa(gate) : "");
if (rt->rt_metric != metric)
(void)fprintf(ftrace, "metric=%-2d ", metric);