1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-03-08 20:58:20 +03:00

sd-boot: coding style fix, don't rely on C's downgrade-to-bool feature for numerical values

This commit is contained in:
Lennart Poettering 2018-06-21 18:51:14 +02:00
parent 05907f25a5
commit 64e7e27cd4

View File

@ -890,7 +890,7 @@ static INTN str_verscmp(CHAR16 *s1, CHAR16 *s2) {
INTN order;
order = c_order(*s1) - c_order(*s2);
if (order)
if (order != 0)
return order;
s1++;
s2++;
@ -914,7 +914,7 @@ static INTN str_verscmp(CHAR16 *s1, CHAR16 *s2) {
if (is_digit(*s2))
return -1;
if (first)
if (first != 0)
return first;
}