summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-06 20:52:08 +0000
committerbde <bde@FreeBSD.org>1998-07-06 20:52:08 +0000
commitbaf42e5599bd1cbdb2a0e5427980549767a002b8 (patch)
treef9d5e689007a77b7ba8844204f4541e9e982e0d3 /usr.bin
parent8d76b538fedd35885af84200f8f842ade01eb43c (diff)
downloadFreeBSD-src-baf42e5599bd1cbdb2a0e5427980549767a002b8.zip
FreeBSD-src-baf42e5599bd1cbdb2a0e5427980549767a002b8.tar.gz
Fixed type mismatches and style bugs in rev.1.30.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/route.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c
index 17fcd27..e254d8f 100644
--- a/usr.bin/netstat/route.c
+++ b/usr.bin/netstat/route.c
@@ -36,7 +36,7 @@
static char sccsid[] = "From: @(#)route.c 8.6 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
- "$Id: route.c,v 1.30 1998/04/22 06:54:31 phk Exp $";
+ "$Id: route.c,v 1.31 1998/06/09 04:13:03 imp Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -520,15 +520,13 @@ p_rtentry(rt)
if (rt->rt_parent && !aflag)
return;
- bzero(&addr, sizeof addr);
+ bzero(&addr, sizeof(addr));
if ((sa = kgetsa(rt_key(rt))))
- bcopy(sa,&addr,sa->sa_len);
-
- bzero(&mask, sizeof mask);
+ bcopy(sa, &addr, sa->sa_len);
+ bzero(&mask, sizeof(mask));
if (rt_mask(rt) && (sa = kgetsa(rt_mask(rt))))
- bcopy(sa,&mask,sa->sa_len);
-
- p_sockaddr(&addr, &mask, rt->rt_flags, WID_DST);
+ bcopy(sa, &mask, sa->sa_len);
+ p_sockaddr(&addr.u_sa, &mask.u_sa, rt->rt_flags, WID_DST);
p_sockaddr(kgetsa(rt->rt_gateway), NULL, RTF_HOST, WID_GW);
p_flags(rt->rt_flags, "%-6.6s ");
printf("%6d %8ld ", rt->rt_refcnt, rt->rt_use);
OpenPOWER on IntegriCloud