summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/prwlockunlock.c
diff options
context:
space:
mode:
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;
}