summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-11-09 23:10:02 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-11-09 23:10:02 +0000
commita2fc8703423ec4004ecb5eb9ffacc12857c68091 (patch)
tree90996e8fbaef8d946a7e69c42d973cf5c596636b /sys/arch/alpha
parent4edcaf7855a1c7029b83b06f8ff7581a073edfd3 (diff)
swap definitions superceded by new endian.h
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/alpha/disksubr.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/arch/alpha/alpha/disksubr.c b/sys/arch/alpha/alpha/disksubr.c
index 6ec0b3d283e..ea65784fb44 100644
--- a/sys/arch/alpha/alpha/disksubr.c
+++ b/sys/arch/alpha/alpha/disksubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disksubr.c,v 1.15 1997/10/20 07:26:40 niklas Exp $ */
+/* $OpenBSD: disksubr.c,v 1.16 1997/11/09 23:10:01 niklas Exp $ */
/* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */
/*
@@ -92,14 +92,6 @@ dk_establish(dk, dev)
}
#if defined(DISKLABEL_I386) || defined(DISKLABEL_ALPHA) || defined(DISKLABEL_AMIGA) || defined(DISKLABEL_ALL)
-/* XXX should we not provide generic swapXX functions? */
-#if BYTE_ORDER == BIG_ENDIAN
-#define swap32(x) ((x) = htole32(x))
-#define swap16(x) ((x) = htole16(x))
-#else
-#define swap32(x) ((x) = htobe32(x))
-#define swap16(x) ((x) = htobe16(x))
-#endif
/*
* Byteswap all the fields that might be swapped.