Changeset f3e19146 in rtems


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

clock_gettime: changed assert condition to a standard error code

clock_getres: now checking for a null pointer being passed in

Files:
2 edited

Legend:

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

    rb03ab630 rf3e19146  
    167167  long           ticks;
    168168
    169   assert( tp );
     169  if ( !tp )
     170    set_errno_and_return_minus_one( EINVAL );
    170171
    171172  switch ( clock_id ) {
     
    213214{
    214215  if ( !res )
    215       set_errno_and_return_minus_one( EINVAL );
     216    set_errno_and_return_minus_one( EINVAL );
    216217 
    217218  switch ( clock_id ) {
  • cpukit/posix/src/time.c

    rb03ab630 rf3e19146  
    167167  long           ticks;
    168168
    169   assert( tp );
     169  if ( !tp )
     170    set_errno_and_return_minus_one( EINVAL );
    170171
    171172  switch ( clock_id ) {
     
    213214{
    214215  if ( !res )
    215       set_errno_and_return_minus_one( EINVAL );
     216    set_errno_and_return_minus_one( EINVAL );
    216217 
    217218  switch ( clock_id ) {
Note: See TracChangeset for help on using the changeset viewer.