diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-16 08:31:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-16 08:58:11 +0200 |
commit | 6ec7f2102e6517c60a70acd1421cbc4106495513 (patch) | |
tree | 41ceedbff1e80abf239f32de5fd3d9e85bc9163c /cpukit/posix | |
parent | 00a19d6f92e392c0e3ddc331ab633f28a79dcadd (diff) |
posix: Fix rwlock auto initialization
Add more test cases.
Diffstat (limited to 'cpukit/posix')
-rw-r--r-- | cpukit/posix/src/prwlockunlock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/src/prwlockunlock.c b/cpukit/posix/src/prwlockunlock.c index 92cc0bfde2..2d34f5e393 100644 --- a/cpukit/posix/src/prwlockunlock.c +++ b/cpukit/posix/src/prwlockunlock.c @@ -35,7 +35,7 @@ bool _POSIX_RWLock_Auto_initialization( POSIX_RWLock_Control *the_rwlock ) return false; } - the_rwlock->flags = POSIX_RWLOCK_MAGIC; + the_rwlock->flags = (uintptr_t) the_rwlock ^ POSIX_RWLOCK_MAGIC; return true; } |