From 14d7c5a7b57c0befa068d8fa1cf8f21fdbc45094 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 5 Sep 2008 08:08:39 +0000 Subject: Convert to "bool". --- c/src/lib/libbsp/c4x/c4xsim/timer/timer.c | 6 +++--- c/src/lib/libbsp/shared/timerstub.c | 4 ++-- c/src/lib/libbsp/shared/tod.c | 2 +- c/src/lib/libbsp/unix/posix/timer/timer.c | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'c/src/lib/libbsp') diff --git a/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c b/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c index 999cd6a2a3..8b61bfb6d3 100644 --- a/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c +++ b/c/src/lib/libbsp/c4x/c4xsim/timer/timer.c @@ -23,7 +23,7 @@ #include uint32_t Timer_interrupts; -rtems_boolean benchmark_timer_find_average_overhead; +bool benchmark_timer_find_average_overhead; static uint32_t start; @@ -83,7 +83,7 @@ int benchmark_timer_read( void ) total = clicks * 1; - if ( benchmark_timer_find_average_overhead == 1 ) { + if ( benchmark_timer_find_average_overhead == true ) { return total; /* in count units where each count is */ /* 1 / (clock frequency/2) */ } else { @@ -98,7 +98,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; diff --git a/c/src/lib/libbsp/shared/timerstub.c b/c/src/lib/libbsp/shared/timerstub.c index 563fcdb366..bd8909739d 100644 --- a/c/src/lib/libbsp/shared/timerstub.c +++ b/c/src/lib/libbsp/shared/timerstub.c @@ -11,7 +11,7 @@ #include -rtems_boolean benchmark_timer_find_average_overhead; +bool benchmark_timer_find_average_overhead; void benchmark_timer_initialize(void) { @@ -25,7 +25,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; diff --git a/c/src/lib/libbsp/shared/tod.c b/c/src/lib/libbsp/shared/tod.c index 20a3164376..bc9ec4a99d 100644 --- a/c/src/lib/libbsp/shared/tod.c +++ b/c/src/lib/libbsp/shared/tod.c @@ -188,7 +188,7 @@ void getRealTime( */ /* XXX this routine should be part of the public RTEMS interface */ -rtems_boolean _TOD_Validate( rtems_time_of_day *tod ); +extern bool _TOD_Validate( rtems_time_of_day *tod ); int setRealTime( rtems_time_of_day *tod diff --git a/c/src/lib/libbsp/unix/posix/timer/timer.c b/c/src/lib/libbsp/unix/posix/timer/timer.c index 4e14941212..c2d2eaf88c 100644 --- a/c/src/lib/libbsp/unix/posix/timer/timer.c +++ b/c/src/lib/libbsp/unix/posix/timer/timer.c @@ -23,7 +23,7 @@ struct timeval Timer_start; struct timeval Timer_stop; struct timezone Time_zone; -rtems_boolean benchmark_timer_find_average_overhead; +bool benchmark_timer_find_average_overhead; void benchmark_timer_initialize() { @@ -48,7 +48,7 @@ int benchmark_timer_read() total += Timer_stop.tv_usec; } - if ( benchmark_timer_find_average_overhead == 1 ) + if ( benchmark_timer_find_average_overhead == true ) return total; /* in countdown units */ else { if ( total < LEAST_VALID ) @@ -58,7 +58,7 @@ int benchmark_timer_read() } void benchmark_timer_disable_subtracting_average_overhead( - rtems_boolean find_flag + bool find_flag ) { benchmark_timer_find_average_overhead = find_flag; -- cgit v1.2.3