2008-01-31 Jennifer Averett <jennifer.averett@OARcorp.com>

* posix/src/timersettime.c: Fix to remove warning.
This commit is contained in:
Jennifer Averett
2008-01-31 14:53:59 +00:00
parent b3c73d833b
commit 56c5cf09a5
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -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.
+1 -1
View File
@@ -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);
}