diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-09 22:39:25 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2000-10-09 22:39:25 +0000 |
commit | 80dd44842025d9b3bf8b1525b856b35a25773449 (patch) | |
tree | 2c4cc42f38a2e00e7e1cdbfcb1066019871a11ee /sys | |
parent | 9d000f77a014c92c9f8906d9d8d42d2c4b05583f (diff) |
make midway.c (en* driver) work on non-32bit. from kjc@csl.sony.co.jp
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/midway.c | 4 |
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; |