summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-10-09 22:39:25 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-10-09 22:39:25 +0000
commit80dd44842025d9b3bf8b1525b856b35a25773449 (patch)
tree2c4cc42f38a2e00e7e1cdbfcb1066019871a11ee /sys/dev/ic
parent9d000f77a014c92c9f8906d9d8d42d2c4b05583f (diff)
make midway.c (en* driver) work on non-32bit. from kjc@csl.sony.co.jp
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/midway.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/midway.c b/sys/dev/ic/midway.c
index e9e43456365..4da7aa37156 100644
--- a/sys/dev/ic/midway.c
+++ b/sys/dev/ic/midway.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midway.c,v 1.26 2000/04/27 00:04:25 chris Exp $ */
+/* $OpenBSD: midway.c,v 1.27 2000/10/09 22:39:24 itojun Exp $ */
/* (sync'd to midway.c 1.68) */
/*
@@ -1572,7 +1572,7 @@ struct ifnet *ifp;
* [including AAL5 PDU, if AAL5]
*/
- got = mlen - sizeof(struct atm_pseudohdr *);
+ got = mlen - sizeof(struct atm_pseudohdr);
toadd = (aal == MID_TBD_AAL5) ? MID_PDU_SIZE : 0; /* PDU */
cellcnt = (got + toadd + (MID_ATMDATASZ - 1)) / MID_ATMDATASZ;
need = cellcnt * MID_ATMDATASZ;