X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_init.c;h=fb689271ce7affd0171368005ceebc03abcf6cff;hb=39f296a95b02925b8c3439e140a5668e36055d9b;hp=6e23df139a213f64b036b901fa9f933c7cf59419;hpb=4820f9268d3dc1f2aac923de0a591ffd5d54ea89;p=musl diff --git a/src/thread/pthread_mutex_init.c b/src/thread/pthread_mutex_init.c index 6e23df13..fb689271 100644 --- a/src/thread/pthread_mutex_init.c +++ b/src/thread/pthread_mutex_init.c @@ -1,8 +1,8 @@ #include "pthread_impl.h" -int pthread_mutex_init(pthread_mutex_t *m, const pthread_mutexattr_t *a) +int pthread_mutex_init(pthread_mutex_t *restrict m, const pthread_mutexattr_t *restrict a) { memset(m, 0, sizeof *m); - if (a) m->_m_type = *a & 3; + if (a) m->_m_type = *a & 7; return 0; }