diff options
author | Kenji Aoyama <aoyama@cvs.openbsd.org> | 2021-05-04 14:05:13 +0000 |
---|---|---|
committer | Kenji Aoyama <aoyama@cvs.openbsd.org> | 2021-05-04 14:05:13 +0000 |
commit | e57fd1622b6aa2dd27295ce31995aa522b156fae (patch) | |
tree | bc30d54e28cc6e451f95649d83fed4dd0a629b89 /sys/arch/m88k/include | |
parent | 947265dd762a7585825c3b25b03dbf8691555f4d (diff) |
Fix 2nd and 3rd arguments' cast in atomic_cas_ptr().
This fixes compile errors (actually warnings) on m88k in sys/net/pf.c
revision 1.1116 changes.
Diff from Miod Vallat, tested on GENERIC and GENERIC.MP by me.
Diffstat (limited to 'sys/arch/m88k/include')
-rw-r--r-- | sys/arch/m88k/include/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/include/atomic.h b/sys/arch/m88k/include/atomic.h index 6ce3c0902d5..b4f078d2444 100644 --- a/sys/arch/m88k/include/atomic.h +++ b/sys/arch/m88k/include/atomic.h @@ -1,4 +1,4 @@ -/* $OpenBSD: atomic.h,v 1.14 2018/08/22 11:25:58 aoyama Exp $ */ +/* $OpenBSD: atomic.h,v 1.15 2021/05/04 14:05:12 aoyama Exp $ */ /* Public Domain */ @@ -137,7 +137,7 @@ atomic_clear_int(volatile unsigned int *uip) ((unsigned long)atomic_cas_uint((unsigned int *)p, (unsigned int)o, \ (unsigned int)n)) #define atomic_cas_ptr(p,o,n) \ - ((void *)atomic_cas_uint((void *)p, (void *)o, (void *)n)) + ((void *)atomic_cas_uint((void *)p, (unsigned int)o, (unsigned int)n)) #define atomic_swap_ulong(p,o) \ ((unsigned long)atomic_swap_uint((unsigned int *)p, (unsigned int)o) |