summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/timersettime.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2008-01-31 14:53:59 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2008-01-31 14:53:59 +0000
commit56c5cf09a555caea141d2286c4f89d822d633979 (patch)
treeca981cec31aec6dd37fc93fc0b94fb44ac778be9 /cpukit/posix/src/timersettime.c
parent2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-56c5cf09a555caea141d2286c4f89d822d633979.tar.bz2
2008-01-31 Jennifer Averett <jennifer.averett@OARcorp.com>
* posix/src/timersettime.c: Fix to remove warning.
Diffstat (limited to 'cpukit/posix/src/timersettime.c')
-rw-r--r--cpukit/posix/src/timersettime.c2
1 files changed, 1 insertions, 1 deletions
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);
}