forked from Imagelibrary/rtems
cleaned up spacing and parentheses
This commit is contained in:
@@ -9,14 +9,14 @@ STATIC INLINE boolean _POSIX_Priority_Is_valid(
|
|||||||
int priority
|
int priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (boolean) priority >= 1 && priority <= 255;
|
return (boolean) (priority >= 1 && priority <= 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC INLINE Priority_Control _POSIX_Priority_To_core(
|
STATIC INLINE Priority_Control _POSIX_Priority_To_core(
|
||||||
int priority
|
int priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (Priority_Control) 256 - priority;
|
return (Priority_Control) (256 - priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC INLINE int _POSIX_Priority_From_core(
|
STATIC INLINE int _POSIX_Priority_From_core(
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ STATIC INLINE boolean _POSIX_Priority_Is_valid(
|
|||||||
int priority
|
int priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (boolean) priority >= 1 && priority <= 255;
|
return (boolean) (priority >= 1 && priority <= 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC INLINE Priority_Control _POSIX_Priority_To_core(
|
STATIC INLINE Priority_Control _POSIX_Priority_To_core(
|
||||||
int priority
|
int priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (Priority_Control) 256 - priority;
|
return (Priority_Control) (256 - priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC INLINE int _POSIX_Priority_From_core(
|
STATIC INLINE int _POSIX_Priority_From_core(
|
||||||
|
|||||||
@@ -9,14 +9,14 @@ STATIC INLINE boolean _POSIX_Priority_Is_valid(
|
|||||||
int priority
|
int priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (boolean) priority >= 1 && priority <= 255;
|
return (boolean) (priority >= 1 && priority <= 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC INLINE Priority_Control _POSIX_Priority_To_core(
|
STATIC INLINE Priority_Control _POSIX_Priority_To_core(
|
||||||
int priority
|
int priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (Priority_Control) 256 - priority;
|
return (Priority_Control) (256 - priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC INLINE int _POSIX_Priority_From_core(
|
STATIC INLINE int _POSIX_Priority_From_core(
|
||||||
|
|||||||
Reference in New Issue
Block a user