X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_setscope.c;h=d56ee391a1dd77aad23c83805856d3018af957ec;hb=d960d4f2cbf18ff3476c7ac03698ec253885dd8e;hp=a970a819b52d38472ae3e13b60a46a6d1251b761;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/thread/pthread_attr_setscope.c b/src/thread/pthread_attr_setscope.c index a970a819..d56ee391 100644 --- a/src/thread/pthread_attr_setscope.c +++ b/src/thread/pthread_attr_setscope.c @@ -2,5 +2,6 @@ int pthread_attr_setscope(pthread_attr_t *a, int scope) { + if (scope > 1U) return EINVAL; return 0; }