diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-26 22:58:11 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-26 22:58:11 +0000 |
commit | 41fe31c4e9ff1e530b946027eeaf8593cbae3976 (patch) | |
tree | 6df4471475e1ab846b70797eba97a9ec6f50ceb1 /sys/dev | |
parent | 5443a9225a2606ca75ce32b901232279e960006d (diff) |
htole32 is twice as wrong as letoh16
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/i2o/iop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/i2o/iop.c b/sys/dev/i2o/iop.c index d4f1d2999c5..07fb2becd9e 100644 --- a/sys/dev/i2o/iop.c +++ b/sys/dev/i2o/iop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iop.c,v 1.11 2001/06/26 20:05:21 niklas Exp $ */ +/* $OpenBSD: iop.c,v 1.12 2001/06/26 22:58:10 mickey Exp $ */ /* $NetBSD: iop.c,v 1.12 2001/03/21 14:27:05 ad Exp $ */ /*- @@ -1075,7 +1075,7 @@ iop_hrt_get(struct iop_softc *sc) letoh16(hrthdr.numentries))); size = sizeof(struct i2o_hrt) + - (htole32(hrthdr.numentries) - 1) * sizeof(struct i2o_hrt_entry); + (letoh16(hrthdr.numentries) - 1) * sizeof(struct i2o_hrt_entry); hrt = (struct i2o_hrt *)malloc(size, M_DEVBUF, M_NOWAIT); if (!hrt) return (ENOMEM); |