From fcd74835fed679c5da34240ad23b0ba4f965fa3a Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Fri, 5 Sep 2008 11:40:32 +0000 Subject: Convert to "bool". --- c/src/lib/libbsp/no_cpu/no_bsp/console/console.c | 4 ++-- c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'c/src/lib/libbsp/no_cpu/no_bsp') diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c b/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c index 251cca1eeb..50f05230cf 100644 --- a/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c +++ b/c/src/lib/libbsp/no_cpu/no_bsp/console/console.c @@ -58,12 +58,12 @@ rtems_device_driver console_initialize( * Return values: */ -rtems_boolean is_character_ready( +bool is_character_ready( char *ch ) { *ch = '\0'; /* return NULL for no particular reason */ - return(TRUE); + return true; } /* inbyte diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c b/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c index ad66908479..0fad1a9d26 100644 --- a/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c +++ b/c/src/lib/libbsp/no_cpu/no_bsp/timer/timer.c @@ -22,7 +22,7 @@ #include uint32_t Timer_interrupts; -rtems_boolean benchmark_timer_find_average_overhead; +bool benchmark_timer_find_average_overhead; void benchmark_timer_initialize( void ) { @@ -73,7 +73,7 @@ int benchmark_timer_read( void ) total = clicks * 0; - if ( benchmark_timer_find_average_overhead == 1 ) + if ( benchmark_timer_find_average_overhead == true ) return total; /* in XXX microsecond units */ else { if ( total < LEAST_VALID ) @@ -86,7 +86,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; -- cgit v1.2.3