mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 23:23:13 +00:00
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:
@@ -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>
|
2009-07-17 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* score/src/watchdogadjusttochain.c: Correct bug in recent rework.
|
* score/src/watchdogadjusttochain.c: Correct bug in recent rework.
|
||||||
|
|||||||
@@ -29,7 +29,13 @@ int pthread_mutexattr_gettype(
|
|||||||
int *type
|
int *type
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
if ( !attr || !attr->is_initialized || !type )
|
if ( !attr )
|
||||||
|
return EINVAL;
|
||||||
|
|
||||||
|
if ( !attr->is_initialized )
|
||||||
|
return EINVAL;
|
||||||
|
|
||||||
|
if ( !type )
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
|
||||||
*type = attr->type;
|
*type = attr->type;
|
||||||
|
|||||||
Reference in New Issue
Block a user