projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prepare strcoll/wcscoll for LC_COLLATE support and add ABI symbols
[musl]
/
src
/
thread
/
pthread_mutexattr_setpshared.c
diff --git
a/src/thread/pthread_mutexattr_setpshared.c
b/src/thread/pthread_mutexattr_setpshared.c
index
1a26001
..
8c7a1e2
100644
(file)
--- a/
src/thread/pthread_mutexattr_setpshared.c
+++ b/
src/thread/pthread_mutexattr_setpshared.c
@@
-3,7
+3,7
@@
int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared)
{
if (pshared > 1U) return EINVAL;
-
*a
&= 0x7fffffff;
-
*a
|= pshared<<31;
+
a->__attr
&= 0x7fffffff;
+
a->__attr
|= pshared<<31;
return 0;
}