From 7fea679b6f4c376cf068eaee987d3ff4e415b23e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 6 Sep 1996 15:16:19 +0000 Subject: changed _TOD_Is_set from a function to a boolean variable --- c/src/exec/rtems/src/clock.c | 6 +++--- c/src/exec/rtems/src/rtclock.c | 6 +++--- c/src/exec/rtems/src/rtemstimer.c | 2 +- c/src/exec/rtems/src/tasks.c | 2 +- c/src/exec/rtems/src/timer.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'c/src/exec/rtems') diff --git a/c/src/exec/rtems/src/clock.c b/c/src/exec/rtems/src/clock.c index f73401809c..4b7b5f5b31 100644 --- a/c/src/exec/rtems/src/clock.c +++ b/c/src/exec/rtems/src/clock.c @@ -48,14 +48,14 @@ rtems_status_code rtems_clock_get( switch ( option ) { case RTEMS_CLOCK_GET_TOD: - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *(rtems_time_of_day *)time_buffer = _TOD_Current; return RTEMS_SUCCESSFUL; case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *(rtems_interval *)time_buffer = _TOD_Seconds_since_epoch; @@ -70,7 +70,7 @@ rtems_status_code rtems_clock_get( return RTEMS_SUCCESSFUL; case RTEMS_CLOCK_GET_TIME_VALUE: - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; _ISR_Disable( level ); diff --git a/c/src/exec/rtems/src/rtclock.c b/c/src/exec/rtems/src/rtclock.c index f73401809c..4b7b5f5b31 100644 --- a/c/src/exec/rtems/src/rtclock.c +++ b/c/src/exec/rtems/src/rtclock.c @@ -48,14 +48,14 @@ rtems_status_code rtems_clock_get( switch ( option ) { case RTEMS_CLOCK_GET_TOD: - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *(rtems_time_of_day *)time_buffer = _TOD_Current; return RTEMS_SUCCESSFUL; case RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH: - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; *(rtems_interval *)time_buffer = _TOD_Seconds_since_epoch; @@ -70,7 +70,7 @@ rtems_status_code rtems_clock_get( return RTEMS_SUCCESSFUL; case RTEMS_CLOCK_GET_TIME_VALUE: - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; _ISR_Disable( level ); diff --git a/c/src/exec/rtems/src/rtemstimer.c b/c/src/exec/rtems/src/rtemstimer.c index 6c3005ffbe..40ee526f26 100644 --- a/c/src/exec/rtems/src/rtemstimer.c +++ b/c/src/exec/rtems/src/rtemstimer.c @@ -277,7 +277,7 @@ rtems_status_code rtems_timer_fire_when( Objects_Locations location; rtems_interval seconds; - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) diff --git a/c/src/exec/rtems/src/tasks.c b/c/src/exec/rtems/src/tasks.c index 403a26e0d4..2f78b015f4 100644 --- a/c/src/exec/rtems/src/tasks.c +++ b/c/src/exec/rtems/src/tasks.c @@ -1034,7 +1034,7 @@ rtems_time_of_day *time_buffer { Watchdog_Interval seconds; - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; time_buffer->ticks = 0; diff --git a/c/src/exec/rtems/src/timer.c b/c/src/exec/rtems/src/timer.c index 6c3005ffbe..40ee526f26 100644 --- a/c/src/exec/rtems/src/timer.c +++ b/c/src/exec/rtems/src/timer.c @@ -277,7 +277,7 @@ rtems_status_code rtems_timer_fire_when( Objects_Locations location; rtems_interval seconds; - if ( !_TOD_Is_set() ) + if ( !_TOD_Is_set ) return RTEMS_NOT_DEFINED; if ( !_TOD_Validate( wall_time ) ) -- cgit v1.2.3