X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread%2Fpthread_mutexattr_setpshared.c;h=8c7a1e26b8943e7011d90cf07ad9eae74b21e8e5;hb=4b0306c83c8c3614afbaf18a18e22d24f335ea04;hp=1a26001a574940f190049405234b0151d062b862;hpb=1d6b1f15929ff19f4dce4f83947e14f7c3fc3c19;p=musl diff --git a/src/thread/pthread_mutexattr_setpshared.c b/src/thread/pthread_mutexattr_setpshared.c index 1a26001a..8c7a1e26 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 &= 0x7fffffff; + a->__attr |= pshared<<31; return 0; }