summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2014-07-10 03:16:14 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2014-07-10 03:16:14 +0000
commitf2aacc7c2d52053d548c057a2c53c168fb490ca0 (patch)
treedae4c1e65ae82ca2f69b1eacaf9f1bd61691ed8a
parentabe8ae47cf88369a5812605d5c1887ee639981d0 (diff)
guenther spotted my bad copy and pasting.
fall back to htobe64 for htobem64 instead of htole64 on LE archs.
-rw-r--r--sys/sys/endian.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/endian.h b/sys/sys/endian.h
index 5d37a3af754..cad62d5a76f 100644
--- a/sys/sys/endian.h
+++ b/sys/sys/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.21 2014/03/14 10:47:21 dlg Exp $ */
+/* $OpenBSD: endian.h,v 1.22 2014/07/10 03:16:13 dlg Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -227,7 +227,7 @@ __END_DECLS
#define htobem16(_x, _v) (*(__uint16_t *)(_x) = htobe16(_v))
#define htobem32(_x, _v) (*(__uint32_t *)(_x) = htobe32(_v))
-#define htobem64(_x, _v) (*(__uint64_t *)(_x) = htole64(_v))
+#define htobem64(_x, _v) (*(__uint64_t *)(_x) = htobe64(_v))
#endif /* MD_SWAPIO */