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

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