tree-wide: check if errno is greater than zero (2)
Compare errno with zero in a way that tells gcc that (if the condition is true) errno is positive.
This commit is contained in:
@@ -141,7 +141,7 @@ static int property_get_nice(
|
||||
else {
|
||||
errno = 0;
|
||||
n = getpriority(PRIO_PROCESS, 0);
|
||||
if (errno != 0)
|
||||
if (errno > 0)
|
||||
n = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user