]> git.ipfire.org Git - thirdparty/strongswan.git/commit
atomics: Use type of destination in CAS implementation
authorTobias Brunner <tobias@strongswan.org>
Fri, 22 Jun 2018 08:25:25 +0000 (10:25 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 3 Jul 2018 09:31:31 +0000 (11:31 +0200)
commit2afdb92dd0f58a4f28afff21988e3c9c38b34f5b
tree98c8279bfb1ec7a44fa11363ddce2551833b7ecf
parent942599b6238a54cd82631e4e19dea86867dd900d
atomics: Use type of destination in CAS implementation

The type of the value was incorrect (void**) if NULL was passed to cas_ptr()
as expected value, which caused a compiler warning with Clang because
__atomic_compare_exchange_n() expects the types of the first two arguments
to be the same.
src/libstrongswan/utils/utils/atomics.h