diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-04 17:46:39 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-04 17:46:39 +0000 |
commit | 484a76996eeb65ad726b65946642516c70b3257b (patch) | |
tree | 6aed4eba45d4eb704f004622ecbf63e275bb876c /cpukit/rtems/inline/rtems/rtems/options.inl | |
parent | 2008-09-04 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-484a76996eeb65ad726b65946642516c70b3257b.tar.bz2 |
Convert to "bool".
Diffstat (limited to '')
-rw-r--r-- | cpukit/rtems/inline/rtems/rtems/options.inl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/rtems/inline/rtems/rtems/options.inl b/cpukit/rtems/inline/rtems/rtems/options.inl index d079a50a44..fd8c3ba234 100644 --- a/cpukit/rtems/inline/rtems/rtems/options.inl +++ b/cpukit/rtems/inline/rtems/rtems/options.inl @@ -33,11 +33,11 @@ * This function returns TRUE if the RTEMS_NO_WAIT option is enabled in * option_set, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait ( +RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait ( rtems_option option_set ) { - return (option_set & RTEMS_NO_WAIT); + return (option_set & RTEMS_NO_WAIT) ? true : false; } /** @@ -46,11 +46,11 @@ RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait ( * This function returns TRUE if the RTEMS_EVENT_ANY option is enabled in * OPTION_SET, and FALSE otherwise. */ -RTEMS_INLINE_ROUTINE boolean _Options_Is_any ( +RTEMS_INLINE_ROUTINE bool _Options_Is_any ( rtems_option option_set ) { - return (option_set & RTEMS_EVENT_ANY); + return (option_set & RTEMS_EVENT_ANY) ? true : false; } /**@}*/ |