pthread_mutexattr_setprioceiling: valid priority ceiling check looked at

value in attribute structure instead of passed in priority
This commit is contained in:
Joel Sherrill
1996-08-12 17:02:39 +00:00
parent 684c3c49c3
commit db8e901180
2 changed files with 2 additions and 2 deletions

View File

@@ -551,7 +551,7 @@ int pthread_mutexattr_setprioceiling(
if ( !attr || !attr->is_initialized )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( attr->prio_ceiling ) )
if ( !_POSIX_Priority_Is_valid( prio_ceiling ) )
return EINVAL;
attr->prio_ceiling = prioceiling;

View File

@@ -551,7 +551,7 @@ int pthread_mutexattr_setprioceiling(
if ( !attr || !attr->is_initialized )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( attr->prio_ceiling ) )
if ( !_POSIX_Priority_Is_valid( prio_ceiling ) )
return EINVAL;
attr->prio_ceiling = prioceiling;