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

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