diff options
author | 2014-07-10 03:16:13 +0000 | |
---|---|---|
committer | 2014-07-10 03:16:13 +0000 | |
commit | 53462c326297d1e05542d18098dfef427a6dcfc0 (patch) | |
tree | 34aa67816b7cda28566157c80e1663755103c38f | |
parent | Fix another free error. (diff) | |
download | wireguard-openbsd-53462c326297d1e05542d18098dfef427a6dcfc0.tar.xz wireguard-openbsd-53462c326297d1e05542d18098dfef427a6dcfc0.zip |
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.h | 4 |
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 */ |