summaryrefslogtreecommitdiff
path: root/sbin/route
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-14 18:41:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-14 18:41:38 +0000
commitb9803a1041021b9038890b8dffd015efab3b888c (patch)
tree88cbdb7f321dbd1c92120006e3a0fee1475ce8f7 /sbin/route
parentc54e568d42b2cca43e226be13626d9e9d3b6e087 (diff)
inane
Diffstat (limited to 'sbin/route')
-rw-r--r--sbin/route/route.c8
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;