fix off-by-one error in sem_(timed)wait (using old sem value instead of new)
[musl] / src / thread / pthread_getspecific.c
1 #include "pthread_impl.h"
2
3 void *pthread_getspecific(pthread_key_t k)
4 {
5         struct pthread *self = __pthread_self();
6         return self->tsd[k];
7 }