diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 06:16:34 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 06:16:34 +0000 |
commit | 5453f8a26ee9ec9e8d96e59ea4d0049e512864c6 (patch) | |
tree | 7ae6f28aff4c6383b6874422eca4c511d28ed625 /c/src/lib/libbsp/i386/i386ex | |
parent | 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-5453f8a26ee9ec9e8d96e59ea4d0049e512864c6.tar.bz2 |
Convert to "bool".
Diffstat (limited to 'c/src/lib/libbsp/i386/i386ex')
-rw-r--r-- | c/src/lib/libbsp/i386/i386ex/timer/timer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/i386/i386ex/timer/timer.c b/c/src/lib/libbsp/i386/i386ex/timer/timer.c index ccaef6585d..814ad01709 100644 --- a/c/src/lib/libbsp/i386/i386ex/timer/timer.c +++ b/c/src/lib/libbsp/i386/i386ex/timer/timer.c @@ -28,7 +28,7 @@ #include <stdlib.h> int Ttimer_val; -rtems_boolean benchmark_timer_find_average_overhead; +bool benchmark_timer_find_average_overhead; extern void timerisr(void); extern int ClockIsOn(const rtems_raw_irq_connect_data*); @@ -84,11 +84,11 @@ void Timer_exit(void) void benchmark_timer_initialize(void) { - static rtems_boolean First = TRUE; + static bool First = true; if (First) { - First = FALSE; + First = false; atexit(Timer_exit); /* Try not to hose the system at exit. */ if (!i386_set_idt_entry (&timer_raw_irq_data)) { @@ -124,7 +124,7 @@ int benchmark_timer_read(void) /* ??? Is "do not restore old vector" causing problems? */ - if ( benchmark_timer_find_average_overhead == 1 ) + if ( benchmark_timer_find_average_overhead == true ) return total; /* in one microsecond units */ else { @@ -135,7 +135,7 @@ int benchmark_timer_read(void) } void benchmark_timer_disable_subtracting_average_overhead( - rtems_boolean find_flag + bool find_flag ) { benchmark_timer_find_average_overhead = find_flag; |