summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-07-03 12:47:30 +0000
committermiod <miod@openbsd.org>2015-07-03 12:47:30 +0000
commit00ec56dce73a72aded8c60d56a6aea88c9a76ebd (patch)
tree2e238a498ff05b7e980ff8e9d251db22546484fd
parentSwitch to standard, non-historical sort(1) and join(1) usage. ok millert@ (diff)
downloadwireguard-openbsd-00ec56dce73a72aded8c60d56a6aea88c9a76ebd.tar.xz
wireguard-openbsd-00ec56dce73a72aded8c60d56a6aea88c9a76ebd.zip
Fix cast in atomic_swap_ptr()
-rw-r--r--sys/arch/m88k/include/atomic.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/include/atomic.h b/sys/arch/m88k/include/atomic.h
index 7a0f8d34c88..cafbada29b2 100644
--- a/sys/arch/m88k/include/atomic.h
+++ b/sys/arch/m88k/include/atomic.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomic.h,v 1.12 2014/07/18 10:40:14 dlg Exp $ */
+/* $OpenBSD: atomic.h,v 1.13 2015/07/03 12:47:30 miod Exp $ */
/* Public Domain */
@@ -142,7 +142,7 @@ atomic_clear_int(volatile unsigned int *uip)
#define atomic_swap_ulong(p,o) \
((unsigned long)atomic_swap_uint((unsigned int *)p, (unsigned int)o)
#define atomic_swap_ptr(p,o) \
- ((void *)atomic_swap_uint((void *)p, (void *)o))
+ ((void *)atomic_swap_uint((void *)p, (unsigned int)o))
static inline void
__sync_synchronize(void)