diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-04 20:39:29 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-04 20:39:29 +0000 |
commit | 0aa45aed951fcc94c65f3b6161e499cb5815ad25 (patch) | |
tree | 71c6ef99fc268f3fa20c1f12aa28f1cbe1d92833 /sys/net/if.c | |
parent | 2405bc6835873bd34fb6baf68dc7958d90c09763 (diff) |
fix unsigned without a size-type
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 005918ce919..727a6e6b8e2 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.18 1998/08/05 19:51:06 millert Exp $ */ +/* $OpenBSD: if.c,v 1.19 1999/07/04 20:39:28 deraadt Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -84,7 +84,7 @@ static void if_attachsetup(ifp) struct ifnet *ifp; { - unsigned socksize, ifasize; + unsigned int socksize, ifasize; int namelen, masklen; register struct sockaddr_dl *sdl; register struct ifaddr *ifa; @@ -92,7 +92,7 @@ if_attachsetup(ifp) ifp->if_index = ++if_index; if (ifnet_addrs == 0 || if_index >= if_indexlim) { - unsigned n = (if_indexlim <<= 1) * sizeof(ifa); + unsigned int n = (if_indexlim <<= 1) * sizeof(ifa); struct ifaddr **q = (struct ifaddr **) malloc(n, M_IFADDR, M_WAITOK); if (ifnet_addrs) { |