X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_condattr_setpshared.c;h=bece8a269c9b8ccc62498e0d3378946358b1cd5e;hp=c0cc1ef9f90dc4bf27e075c0207590314f75a209;hb=HEAD;hpb=b4d40e44e36f28cf5a52e9f0c12e622c3baf1657 diff --git a/src/thread/pthread_condattr_setpshared.c b/src/thread/pthread_condattr_setpshared.c index c0cc1ef9..bece8a26 100644 --- a/src/thread/pthread_condattr_setpshared.c +++ b/src/thread/pthread_condattr_setpshared.c @@ -3,7 +3,7 @@ int pthread_condattr_setpshared(pthread_condattr_t *a, int pshared) { if (pshared > 1U) return EINVAL; - *a &= 0x7fffffff; - *a |= pshared<<31; + a->__attr &= 0x7fffffff; + a->__attr |= pshared<<31; return 0; }