diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-04-27 22:20:00 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-04-27 22:20:00 +0000 |
commit | e34e5b119470f07f7e2b37d8e98dcafd120948c8 (patch) | |
tree | 355345f2c048a8ad9c7d12932c19e2d22431d100 /sys | |
parent | 6aaff48e8850f00d3279ec39dd30a3b78c65a19b (diff) |
Extend the bus.h interface with endian conversion functions and use
where relevant.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/isa/if_ed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/isa/if_ed.c b/sys/dev/isa/if_ed.c index b385c61d95a..d770c80a73e 100644 --- a/sys/dev/isa/if_ed.c +++ b/sys/dev/isa/if_ed.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ed.c,v 1.10 1996/04/21 22:23:41 deraadt Exp $ */ +/* $OpenBSD: if_ed.c,v 1.11 1996/04/27 22:19:59 niklas Exp $ */ /* $NetBSD: if_ed.c,v 1.93 1996/04/11 22:28:55 cgd Exp $ */ /* @@ -1855,8 +1855,8 @@ loop: sizeof(packet_hdr)); else ed_pio_readmem(sc, (long)packet_ptr, - (caddr_t) &packet_hdr, sizeof(packet_hdr)); - len = packet_hdr.count; + (caddr_t)&packet_hdr, sizeof(packet_hdr)); + len = bus_to_host_2(bc, packet_hdr.count); /* * Try do deal with old, buggy chips that sometimes duplicate |