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/adjtime.c | |
parent | Remove stray white spaces. (diff) | |
download | rtems-874297f3bea7761cf05ae26540b7a9e21d4a6e1d.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to 'cpukit/posix/src/adjtime.c')
-rw-r--r-- | cpukit/posix/src/adjtime.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/posix/src/adjtime.c b/cpukit/posix/src/adjtime.c index 12edb63e91..1e06dab608 100644 --- a/cpukit/posix/src/adjtime.c +++ b/cpukit/posix/src/adjtime.c @@ -2,8 +2,8 @@ * adjustime() function - required by NTP * * I am unaware of the history behind the definition of this service - * and don't know if its behavior is covered by any standard. --joel - * + * and don't know if its behavior is covered by any standard. --joel + * * $Id$ */ @@ -21,14 +21,14 @@ static long __adjustment = 0; int adjtime ( struct timeval *delta, struct timeval *olddelta ) -{ +{ struct timespec ts; if ( olddelta ) { olddelta->tv_sec = __adjustment / TOD_MICROSECONDS_PER_SECOND; olddelta->tv_usec = __adjustment / TOD_MICROSECONDS_PER_SECOND; } - + if ( !delta ) return -1; @@ -36,11 +36,11 @@ int adjtime ( struct timeval *delta, struct timeval *olddelta ) /* too small to account for */ if ( __adjustment < _TOD_Microseconds_per_tick ) return 0; - + clock_gettime( CLOCK_REALTIME, &ts ); ts.tv_sec += (__adjustment / TOD_MICROSECONDS_PER_SECOND); - ts.tv_nsec += (__adjustment % TOD_MICROSECONDS_PER_SECOND) * + ts.tv_nsec += (__adjustment % TOD_MICROSECONDS_PER_SECOND) * TOD_NANOSECONDS_PER_MICROSECOND; /* if adjustment is too much positive */ |