rfkill: fix compiler warning [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
64a89adaa1
commit
787af7ce7c
|
@ -217,7 +217,7 @@ static int rfkill_read_event(int fd, struct rfkill_event *event)
|
||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (len < RFKILL_EVENT_SIZE_V1) {
|
if ((size_t) len < RFKILL_EVENT_SIZE_V1) {
|
||||||
warnx(_("wrong size of rfkill event: %zu < %zu"),
|
warnx(_("wrong size of rfkill event: %zu < %zu"),
|
||||||
(size_t) len, RFKILL_EVENT_SIZE_V1);
|
(size_t) len, RFKILL_EVENT_SIZE_V1);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue