diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 10:01:03 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-16 10:01:03 +0000 |
commit | 874297f3bea7761cf05ae26540b7a9e21d4a6e1d (patch) | |
tree | 3f514864e20beb9becc81d77053abec90d281a1a /cpukit/posix/src/nanosleep.c | |
parent | Remove stray white spaces. (diff) | |
download | rtems-874297f3bea7761cf05ae26540b7a9e21d4a6e1d.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to '')
-rw-r--r-- | cpukit/posix/src/nanosleep.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/posix/src/nanosleep.c b/cpukit/posix/src/nanosleep.c index 24f9dd6969..06fc1bc5cb 100644 --- a/cpukit/posix/src/nanosleep.c +++ b/cpukit/posix/src/nanosleep.c @@ -37,9 +37,9 @@ int nanosleep( the_rqtp = (struct timespec *)rqtp; /* - * Return EAGAIN if the delay interval is negative. + * Return EAGAIN if the delay interval is negative. * - * NOTE: This behavior is beyond the POSIX specification. + * NOTE: This behavior is beyond the POSIX specification. * FSU pthreads shares this behavior. */ @@ -51,7 +51,7 @@ int nanosleep( if ( the_rqtp->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) rtems_set_errno_and_return_minus_one( EINVAL ); - + ticks = _POSIX_Timespec_to_interval( the_rqtp ); /* @@ -64,12 +64,12 @@ int nanosleep( _Thread_Yield_processor(); _Thread_Enable_dispatch(); if ( rmtp ) { - rmtp->tv_sec = 0; - rmtp->tv_nsec = 0; + rmtp->tv_sec = 0; + rmtp->tv_nsec = 0; } return 0; } - + _Thread_Disable_dispatch(); _Thread_Set_state( _Thread_Executing, @@ -87,7 +87,7 @@ int nanosleep( /* calculate time remaining */ if ( rmtp ) { - ticks -= + ticks -= _Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time; _POSIX_Interval_to_timespec( ticks, rmtp ); |