X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnothread%2Fmtx_unlock.c;h=42f696aa27e613d00c2d0a9ac6d248df2a107a54;hb=4321ebdd142b534d8b7b6c31e01790f77ac46319;hp=97a93a67ac021e8c319c6966a0609859446dc511;hpb=66650707acada328341a3812007307b1b9676803;p=pdclib diff --git a/opt/nothread/mtx_unlock.c b/opt/nothread/mtx_unlock.c index 97a93a6..42f696a 100644 --- a/opt/nothread/mtx_unlock.c +++ b/opt/nothread/mtx_unlock.c @@ -1,20 +1,20 @@ -#ifndef REGTEST -#include - -int mtx_unlock(mtx_t *mtx) -{ - if(--(*mtx) >= 0) - return thrd_success; - return thrd_error; -} -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -int main( void ) -{ - return TEST_RESULTS; -} - -#endif \ No newline at end of file +#ifndef REGTEST +#include + +int mtx_unlock(mtx_t *mtx) +{ + if(--(*mtx) >= 0) + return thrd_success; + return thrd_error; +} +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif