From 56c5cf09a555caea141d2286c4f89d822d633979 Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 31 Jan 2008 14:53:59 +0000 Subject: [PATCH] 2008-01-31 Jennifer Averett * posix/src/timersettime.c: Fix to remove warning. --- cpukit/ChangeLog | 4 ++++ cpukit/posix/src/timersettime.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 27e81b0fb1..efbad93542 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2008-01-31 Jennifer Averett + + * posix/src/timersettime.c: Fix to remove warning. + 2008-01-31 Joel Sherrill * libcsupport/src/posix_memalign.c: Remove warning. diff --git a/cpukit/posix/src/timersettime.c b/cpukit/posix/src/timersettime.c index 05260360e7..e55a18ef07 100644 --- a/cpukit/posix/src/timersettime.c +++ b/cpukit/posix/src/timersettime.c @@ -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); }