Blame SOURCES/0002-Fix-the-32bit-signedness-comparison.patch

89397c
From cdb4b6f3bfd6ada6558ddfb889e27150f0841b28 Mon Sep 17 00:00:00 2001
89397c
From: Gary Ching-Pang Lin <glin@suse.com>
89397c
Date: Mon, 24 Nov 2014 11:38:54 +0800
f928ec
Subject: [PATCH 02/10] Fix the 32bit signedness comparison
89397c
89397c
---
89397c
 src/mokutil.c | 4 ++--
89397c
 1 file changed, 2 insertions(+), 2 deletions(-)
89397c
89397c
diff --git a/src/mokutil.c b/src/mokutil.c
f928ec
index 93fb6fabcab..a7e83f71f0b 100644
89397c
--- a/src/mokutil.c
89397c
+++ b/src/mokutil.c
89397c
@@ -1284,7 +1284,7 @@ issue_mok_request (char **files, uint32_t total, MokRequest req,
89397c
 
89397c
 		/* Mok */
89397c
 		read_size = read (fd, ptr, sizes[i]);
89397c
-		if (read_size < 0 || read_size != sizes[i]) {
89397c
+		if (read_size < 0 || read_size != (int64_t)sizes[i]) {
89397c
 			fprintf (stderr, "Failed to read %s\n", files[i]);
89397c
 			goto error;
89397c
 		}
89397c
@@ -1645,7 +1645,7 @@ export_moks ()
89397c
 			goto error;
89397c
 		}
89397c
 
89397c
-		while (offset < list[i].mok_size) {
89397c
+		while (offset < (int64_t)list[i].mok_size) {
89397c
 			write_size = write (fd, list[i].mok + offset,
89397c
 						list[i].mok_size - offset);
89397c
 			if (write_size < 0) {
89397c
-- 
f928ec
2.17.1
89397c