2009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>

* posix/src/mutexattrgettype.c: Restructure a bit to make code coverage
	analysis easier.
This commit is contained in:
Joel Sherrill
2009-07-17 16:17:59 +00:00
parent 5d6e8c88fb
commit 863a24e81e
2 changed files with 12 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* posix/src/mutexattrgettype.c: Restructure a bit to make code coverage
analysis easier.
2009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/src/watchdogadjusttochain.c: Correct bug in recent rework.

View File

@@ -29,7 +29,13 @@ int pthread_mutexattr_gettype(
int *type
)
{
if ( !attr || !attr->is_initialized || !type )
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
if ( !type )
return EINVAL;
*type = attr->type;