Correct a typo pthread_attr_setscope() function fails unconditionally

due to.

PR:		misc/30699
Reviewed by:	jasone, ru
Approved by:	jasone, ru
MFC after:	1 week
This commit is contained in:
Maxim Konovalov 2002-02-14 15:20:36 +00:00
parent 7a6051e857
commit 0878d2e5e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90656
3 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ _pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
/* Return an invalid argument: */
ret = EINVAL;
} else if ((contentionscope != PTHREAD_SCOPE_PROCESS) ||
(contentionscope != PTHREAD_SCOPE_SYSTEM)) {
(contentionscope == PTHREAD_SCOPE_SYSTEM)) {
/* We don't support PTHREAD_SCOPE_SYSTEM. */
ret = ENOTSUP;
} else

View File

@ -46,7 +46,7 @@ _pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
/* Return an invalid argument: */
ret = EINVAL;
} else if ((contentionscope != PTHREAD_SCOPE_PROCESS) ||
(contentionscope != PTHREAD_SCOPE_SYSTEM)) {
(contentionscope == PTHREAD_SCOPE_SYSTEM)) {
/* We don't support PTHREAD_SCOPE_SYSTEM. */
ret = ENOTSUP;
} else

View File

@ -46,7 +46,7 @@ _pthread_attr_setscope(pthread_attr_t *attr, int contentionscope)
/* Return an invalid argument: */
ret = EINVAL;
} else if ((contentionscope != PTHREAD_SCOPE_PROCESS) ||
(contentionscope != PTHREAD_SCOPE_SYSTEM)) {
(contentionscope == PTHREAD_SCOPE_SYSTEM)) {
/* We don't support PTHREAD_SCOPE_SYSTEM. */
ret = ENOTSUP;
} else