X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutexattr_setpshared.c;fp=src%2Fthread%2Fpthread_mutexattr_setpshared.c;h=8c7a1e26b8943e7011d90cf07ad9eae74b21e8e5;hp=1a26001a574940f190049405234b0151d062b862;hb=0109d950e685f1c5f6cef245a8b1bc47c9b6d94c;hpb=c4dd0c98bae8e3583f68ba5b30db491055ab2322 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; }