Changeset b9444fb9 in rtems


Ignore:
Timestamp:
08/09/96 19:58:58 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
da2e539
Parents:
13adea0
Message:

added code to catch NULL pointers for return values passed to get routines

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/mutex.c

    r13adea0 rb9444fb9  
    147147)
    148148{
    149   if ( !attr || attr->is_initialized == FALSE )
     149  if ( !attr || !attr->is_initialized )
    150150    return EINVAL;
    151151
     
    164164)
    165165{
    166   if ( !attr || attr->is_initialized == FALSE )
     166  if ( !attr || !attr->is_initialized || !pshared )
    167167    return EINVAL;
    168168
     
    181181)
    182182{
    183   if ( !attr || attr->is_initialized == FALSE )
     183  if ( !attr || !attr->is_initialized )
    184184    return EINVAL;
    185185
     
    532532)
    533533{
    534   if ( !attr || attr->is_initialized == FALSE )
     534  if ( !attr || !attr->is_initialized || !protocol )
    535535    return EINVAL;
    536536
     
    549549)
    550550{
    551   if ( !attr || attr->is_initialized == FALSE )
     551  if ( !attr || !attr->is_initialized )
    552552    return EINVAL;
    553553
     
    569569)
    570570{
    571   if ( !attr || attr->is_initialized == FALSE )
     571  if ( !attr || !attr->is_initialized || !prioceiling )
    572572    return EINVAL;
    573573
     
    640640  Objects_Locations             location;
    641641
     642  if ( !prioceiling )
     643    return EINVAL;
     644
    642645  the_mutex = _POSIX_Mutex_Get( mutex, &location );
    643646  switch ( location ) {
  • cpukit/posix/src/mutex.c

    r13adea0 rb9444fb9  
    147147)
    148148{
    149   if ( !attr || attr->is_initialized == FALSE )
     149  if ( !attr || !attr->is_initialized )
    150150    return EINVAL;
    151151
     
    164164)
    165165{
    166   if ( !attr || attr->is_initialized == FALSE )
     166  if ( !attr || !attr->is_initialized || !pshared )
    167167    return EINVAL;
    168168
     
    181181)
    182182{
    183   if ( !attr || attr->is_initialized == FALSE )
     183  if ( !attr || !attr->is_initialized )
    184184    return EINVAL;
    185185
     
    532532)
    533533{
    534   if ( !attr || attr->is_initialized == FALSE )
     534  if ( !attr || !attr->is_initialized || !protocol )
    535535    return EINVAL;
    536536
     
    549549)
    550550{
    551   if ( !attr || attr->is_initialized == FALSE )
     551  if ( !attr || !attr->is_initialized )
    552552    return EINVAL;
    553553
     
    569569)
    570570{
    571   if ( !attr || attr->is_initialized == FALSE )
     571  if ( !attr || !attr->is_initialized || !prioceiling )
    572572    return EINVAL;
    573573
     
    640640  Objects_Locations             location;
    641641
     642  if ( !prioceiling )
     643    return EINVAL;
     644
    642645  the_mutex = _POSIX_Mutex_Get( mutex, &location );
    643646  switch ( location ) {
Note: See TracChangeset for help on using the changeset viewer.