X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutexattr_setpshared.c;h=100f6ff203f1b2ead3585b656db6d36c32b8beec;hb=40bae2d32fd6f3ffea437fa745ad38a1fe77b27e;hp=1a26001a574940f190049405234b0151d062b862;hpb=1d6b1f15929ff19f4dce4f83947e14f7c3fc3c19;p=musl diff --git a/src/thread/pthread_mutexattr_setpshared.c b/src/thread/pthread_mutexattr_setpshared.c index 1a26001a..100f6ff2 100644 --- 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 &= ~128U; + a->__attr |= pshared<<7; return 0; }