summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/prwlockunlock.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-16 08:31:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-16 08:58:11 +0200
commit6ec7f2102e6517c60a70acd1421cbc4106495513 (patch)
tree41ceedbff1e80abf239f32de5fd3d9e85bc9163c /cpukit/posix/src/prwlockunlock.c
parentjffs2: Add README (diff)
downloadrtems-6ec7f2102e6517c60a70acd1421cbc4106495513.tar.bz2
posix: Fix rwlock auto initialization
Add more test cases.
Diffstat (limited to '')
-rw-r--r--cpukit/posix/src/prwlockunlock.c2
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;
}