diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-10-04 22:28:15 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1998-10-04 22:28:15 +0000 |
commit | e8d405744b3f81813e5432ce3b3372d1a951b91d (patch) | |
tree | cb3aad29939a7c92c1956242c56ea17667ee0394 /sys | |
parent | 5b90ef113d3d0bc24adf2dc49d3e144267995002 (diff) |
Use swap16 not bswap16 in OpenBSD
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/ne2000.c | 4 | ||||
-rw-r--r-- | sys/dev/isa/if_ec.c | 4 | ||||
-rw-r--r-- | sys/dev/isa/if_we.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/ic/ne2000.c b/sys/dev/ic/ne2000.c index 6d973c395b4..6834706b2df 100644 --- a/sys/dev/ic/ne2000.c +++ b/sys/dev/ic/ne2000.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ne2000.c,v 1.1 1998/09/22 06:38:03 fgsch Exp $ */ +/* $OpenBSD: ne2000.c,v 1.2 1998/10/04 22:28:14 niklas Exp $ */ /* $NetBSD: ne2000.c,v 1.12 1998/06/10 01:15:50 thorpej Exp $ */ /*- @@ -623,7 +623,7 @@ ne2000_read_hdr(sc, buf, hdr) buf, (u_int8_t *)hdr, sizeof(struct dp8390_ring), (nsc->sc_type == NE2000_TYPE_NE2000)); #if BYTE_ORDER == BIG_ENDIAN - hdr->count = bswap16(hdr->count); + hdr->count = swap16(hdr->count); #endif } diff --git a/sys/dev/isa/if_ec.c b/sys/dev/isa/if_ec.c index 0cf18c389cf..b86abfd0c4f 100644 --- a/sys/dev/isa/if_ec.c +++ b/sys/dev/isa/if_ec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ec.c,v 1.1 1998/09/22 06:33:18 fgsch Exp $ */ +/* $OpenBSD: if_ec.c,v 1.2 1998/10/04 22:28:14 niklas Exp $ */ /* $NetBSD: if_ec.c,v 1.9 1998/07/05 06:49:12 jonathan Exp $ */ /*- @@ -754,7 +754,7 @@ ec_read_hdr(sc, packet_ptr, packet_hdrp) ec_readmem(esc, packet_ptr, (u_int8_t *)packet_hdrp, sizeof(struct dp8390_ring)); #if BYTE_ORDER == BIG_ENDIAN - packet_hdrp->count = bswap16(packet_hdrp->count); + packet_hdrp->count = swap16(packet_hdrp->count); #endif } diff --git a/sys/dev/isa/if_we.c b/sys/dev/isa/if_we.c index 266e4f39a3b..ed164e66bb1 100644 --- a/sys/dev/isa/if_we.c +++ b/sys/dev/isa/if_we.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_we.c,v 1.1 1998/09/22 06:33:19 fgsch Exp $ */ +/* $OpenBSD: if_we.c,v 1.2 1998/10/04 22:28:14 niklas Exp $ */ /* $NetBSD: if_we.c,v 1.11 1998/07/05 06:49:14 jonathan Exp $ */ /*- @@ -784,7 +784,7 @@ we_read_hdr(sc, packet_ptr, packet_hdrp) we_readmem(wsc, packet_ptr, (u_int8_t *)packet_hdrp, sizeof(struct dp8390_ring)); #if BYTE_ORDER == BIG_ENDIAN - packet_hdrp->count = bswap16(packet_hdrp->count); + packet_hdrp->count = swap16(packet_hdrp->count); #endif } |