summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-05-01 02:17:28 +0000
committermillert <millert@openbsd.org>2003-05-01 02:17:28 +0000
commit8f8a857108c3d2bca5665494c60b7877942637d7 (patch)
tree20b182f8116f2b41e7c65102dd900d50d61b8d1a
parentRework munge_fstab to shrink and clarify code. (diff)
downloadwireguard-openbsd-8f8a857108c3d2bca5665494c60b7877942637d7.tar.xz
wireguard-openbsd-8f8a857108c3d2bca5665494c60b7877942637d7.zip
Fix unbalanced parens in __swap64gen macro for non-gcc; Hugh C Kennedy
-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 77fe19a87b3..e31fd6590df 100644
--- a/sys/sys/endian.h
+++ b/sys/sys/endian.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: endian.h,v 1.8 2002/03/14 01:27:14 millert Exp $ */
+/* $OpenBSD: endian.h,v 1.9 2003/05/01 02:17:28 millert Exp $ */
/*-
* Copyright (c) 1997 Niklas Hallqvist. All rights reserved.
@@ -94,7 +94,7 @@
((u_int32_t)(x) & 0xff000000) >> 24)
#define __swap64gen(x) \
- (u_int64_t)(((u_int64_t)(x) & 0xff) << 56) | \
+ (u_int64_t)((((u_int64_t)(x) & 0xff) << 56) | \
((u_int64_t)(x) & 0xff00) << 40 | \
((u_int64_t)(x) & 0xff0000) << 24 | \
((u_int64_t)(x) & 0xff000000) << 8 | \