2008-09-05 Ralf Corsepius <ralf.corsepius@rtems.org>

* timer/timer.c: Use "true" instead of "1" for "bool"s.
This commit is contained in:
Ralf Corsepius
2008-09-05 02:28:16 +00:00
parent cfdef83443
commit b5059b33b7
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2008-09-05 Ralf Corsepius <ralf.corsepius@rtems.org>
* timer/timer.c: Use "true" instead of "1" for "bool"s.
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* timer/timer.c: Eliminate empty function from every benchmark timer

View File

@@ -62,7 +62,7 @@ int benchmark_timer_read( void )
total = (uint32_t)0x0000ffff - t; /* result is 1/512000 = ~2 uS */
total = (total * 1953) / 1000; /* convert to uS */
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 )