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

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