summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-04 20:39:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-07-04 20:39:29 +0000
commit0aa45aed951fcc94c65f3b6161e499cb5815ad25 (patch)
tree71c6ef99fc268f3fa20c1f12aa28f1cbe1d92833 /sys/net
parent2405bc6835873bd34fb6baf68dc7958d90c09763 (diff)
fix unsigned without a size-type
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c6
-rw-r--r--sys/net/ppp_tty.c4
2 files changed, 5 insertions, 5 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) {
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c
index 537547d5aaa..2e19891e0f6 100644
--- a/sys/net/ppp_tty.c
+++ b/sys/net/ppp_tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ppp_tty.c,v 1.7 1997/09/05 04:27:03 millert Exp $ */
+/* $OpenBSD: ppp_tty.c,v 1.8 1999/07/04 20:39:28 deraadt Exp $ */
/* $NetBSD: ppp_tty.c,v 1.12 1997/03/24 21:23:10 christos Exp $ */
/*
@@ -776,7 +776,7 @@ pppgetm(sc)
/*
* tty interface receiver interrupt.
*/
-static unsigned paritytab[8] = {
+static unsigned int paritytab[8] = {
0x96696996, 0x69969669, 0x69969669, 0x96696996,
0x69969669, 0x96696996, 0x96696996, 0x69969669
};