Blame SOURCES/0036-kpartx-fix-Wsign-compare-error.patch

96a22b
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
96a22b
From: Benjamin Marzinski <bmarzins@redhat.com>
96a22b
Date: Mon, 6 Jul 2020 17:28:46 -0500
96a22b
Subject: [PATCH] kpartx: fix -Wsign-compare error
96a22b
96a22b
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
96a22b
---
96a22b
 kpartx/kpartx.c | 2 +-
96a22b
 1 file changed, 1 insertion(+), 1 deletion(-)
96a22b
96a22b
diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
96a22b
index c24ad6d9..653ce0c8 100644
96a22b
--- a/kpartx/kpartx.c
96a22b
+++ b/kpartx/kpartx.c
96a22b
@@ -738,7 +738,7 @@ struct block {
96a22b
 /* blknr is always in 512 byte blocks */
96a22b
 char *
96a22b
 getblock (int fd, unsigned int blknr) {
96a22b
-	unsigned int secsz = get_sector_size(fd);
96a22b
+	int secsz = get_sector_size(fd);
96a22b
 	unsigned int blks_per_sec = secsz / 512;
96a22b
 	unsigned int secnr = blknr / blks_per_sec;
96a22b
 	unsigned int blk_off = (blknr % blks_per_sec) * 512;
96a22b
-- 
96a22b
2.17.2
96a22b