mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-20 23:12:22 +08:00
2008-01-31 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/timersettime.c: Fix to remove warning.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2008-01-31 Jennifer Averett <jennifer.averett@OARcorp.com>
|
||||
|
||||
* posix/src/timersettime.c: Fix to remove warning.
|
||||
|
||||
2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* libcsupport/src/posix_memalign.c: Remove warning.
|
||||
|
||||
@@ -57,7 +57,7 @@ int timer_settime(
|
||||
/* Convert absolute to relative time */
|
||||
if (flags == TIMER_ABSTIME) {
|
||||
/* Check for seconds in the past */
|
||||
if ( _Timespec_Greater_than( &normalize, &_TOD_Now ) )
|
||||
if ( _Timespec_Greater_than( &normalize.it_value, &_TOD_Now ) )
|
||||
rtems_set_errno_and_return_minus_one( EINVAL );
|
||||
_Timespec_Subtract( &_TOD_Now, &normalize.it_value, &normalize.it_value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user