diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-14 18:41:38 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-14 18:41:38 +0000 |
commit | b9803a1041021b9038890b8dffd015efab3b888c (patch) | |
tree | 88cbdb7f321dbd1c92120006e3a0fee1475ce8f7 /sbin/route | |
parent | c54e568d42b2cca43e226be13626d9e9d3b6e087 (diff) |
inane
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 2b21b9cd2b4..918e80b962b 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.14 1996/12/14 17:36:33 deraadt Exp $ */ +/* $OpenBSD: route.c,v 1.15 1996/12/14 18:41:37 deraadt Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)route.c 8.3 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: route.c,v 1.14 1996/12/14 17:36:33 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: route.c,v 1.15 1996/12/14 18:41:37 deraadt Exp $"; #endif #endif /* not lint */ @@ -411,7 +411,7 @@ netname(sa) char *cp = NULL; static char line[MAXHOSTNAMELEN]; struct netent *np = 0; - u_int32_t net, mask; + long net, mask; int subnetshift; char *ns_print(); char *ipx_print(); @@ -443,7 +443,7 @@ netname(sa) * width subnet fields. */ while (in.s_addr &~ mask) - mask = (u_int32_t)mask >> subnetshift; + mask = mask >> subnetshift; net = in.s_addr & mask; while ((mask & 1) == 0) mask >>= 1, net >>= 1; |