From 787af7ce7c5789298d8238cb02a3e191bd808f28 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 6 May 2021 16:44:20 +0200 Subject: [PATCH] rfkill: fix compiler warning [-Wsign-compare] Signed-off-by: Karel Zak --- sys-utils/rfkill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/rfkill.c b/sys-utils/rfkill.c index 0b72fa9638..745456e33f 100644 --- a/sys-utils/rfkill.c +++ b/sys-utils/rfkill.c @@ -217,7 +217,7 @@ static int rfkill_read_event(int fd, struct rfkill_event *event) return -errno; } - if (len < RFKILL_EVENT_SIZE_V1) { + if ((size_t) len < RFKILL_EVENT_SIZE_V1) { warnx(_("wrong size of rfkill event: %zu < %zu"), (size_t) len, RFKILL_EVENT_SIZE_V1); return 1; -- 2.47.3