Blame SOURCES/0010-ucs2.h-remove-unused-variable.patch

a43681
From 3ae06e10e5e25ca6aab04eba1cb0402bfe068997 Mon Sep 17 00:00:00 2001
a43681
From: Javier Martinez Canillas <javierm@redhat.com>
a43681
Date: Tue, 5 Mar 2019 17:23:24 +0100
a43681
Subject: [PATCH 10/63] ucs2.h: remove unused variable
a43681
a43681
The const uint16_t pointer is not used since now the two bytes of the
a43681
UCS-2 chars are checked to know if is the termination of the string.
a43681
a43681
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
a43681
---
a43681
 src/ucs2.h | 3 +--
a43681
 1 file changed, 1 insertion(+), 2 deletions(-)
a43681
a43681
diff --git a/src/ucs2.h b/src/ucs2.h
a43681
index edd8367b4bc..e0390c34985 100644
a43681
--- a/src/ucs2.h
a43681
+++ b/src/ucs2.h
a43681
@@ -26,12 +26,11 @@ static inline size_t UNUSED
a43681
 ucs2len(const void *vs, ssize_t limit)
a43681
 {
a43681
 	ssize_t i;
a43681
-	const uint16_t *s = vs;
a43681
 	const uint8_t *s8 = vs;
a43681
 
a43681
 	for (i = 0;
a43681
 	     i < (limit >= 0 ? limit : i+1) && s8[0] != 0 && s8[1] != 0;
a43681
-	     i++, s8 += 2, s++)
a43681
+	     i++, s8 += 2)
a43681
 		;
a43681
 	return i;
a43681
 }
a43681
-- 
a43681
2.26.2
a43681