X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutexattr_settype.c;h=cd7a80e342c69981f6f3095e17dfb88739c38281;hb=0109d950e685f1c5f6cef245a8b1bc47c9b6d94c;hp=4e85950ec72c2057e601bbcb0eb552a06521da16;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/thread/pthread_mutexattr_settype.c b/src/thread/pthread_mutexattr_settype.c index 4e85950e..cd7a80e3 100644 --- a/src/thread/pthread_mutexattr_settype.c +++ b/src/thread/pthread_mutexattr_settype.c @@ -3,6 +3,6 @@ int pthread_mutexattr_settype(pthread_mutexattr_t *a, int type) { if ((unsigned)type > 2) return EINVAL; - *a = (*a & ~3) | type; + a->__attr = (a->__attr & ~3) | type; return 0; }