X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fmtx_unlock.c;h=2e5c8cf6bf998f54ca42bc44fa3dda01e533b082;hb=e4235d70672d9751d7718ddc2b52d0b426430768;hp=5033ace7f3292c9604e4f9627c3f912fba6aae87;hpb=8b0472932c1cb8cb2cc46322b21c0c4e21848522;p=musl diff --git a/src/thread/mtx_unlock.c b/src/thread/mtx_unlock.c index 5033ace7..2e5c8cf6 100644 --- a/src/thread/mtx_unlock.c +++ b/src/thread/mtx_unlock.c @@ -1,11 +1,10 @@ #include - -int __pthread_mutex_unlock(mtx_t *); +#include int mtx_unlock(mtx_t *mtx) { /* The only cases where pthread_mutex_unlock can return an * error are undefined behavior for C11 mtx_unlock, so we can * assume it does not return an error and simply tail call. */ - return __pthread_mutex_unlock(mtx); + return __pthread_mutex_unlock((pthread_mutex_t *)mtx); }