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

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