Blame SOURCES/Correctly-size-loop-counter-in-gpp_special_available.patch

aa181f
From 06cee2eb9ba3096cf5f1e532dae56132fd69c948 Mon Sep 17 00:00:00 2001
aa181f
From: Robbie Harwood <rharwood@redhat.com>
aa181f
Date: Thu, 9 Apr 2020 12:00:04 -0400
aa181f
Subject: [PATCH] Correctly size loop counter in gpp_special_available_mechs()
aa181f
aa181f
Fixes compiler warning for clang in CI.
aa181f
aa181f
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
aa181f
(cherry picked from commit f9c0abb935125683972c9289db38dfe840f41b37)
aa181f
---
aa181f
 src/mechglue/gss_plugin.c | 3 +--
aa181f
 1 file changed, 1 insertion(+), 2 deletions(-)
aa181f
aa181f
diff --git a/src/mechglue/gss_plugin.c b/src/mechglue/gss_plugin.c
aa181f
index bf70d87..b9813dc 100644
aa181f
--- a/src/mechglue/gss_plugin.c
aa181f
+++ b/src/mechglue/gss_plugin.c
aa181f
@@ -306,7 +306,6 @@ gss_OID_set gpp_special_available_mechs(const gss_OID_set mechs)
aa181f
     struct gpp_special_oid_list *item;
aa181f
     gss_OID n;
aa181f
     uint32_t maj, min;
aa181f
-    int i;
aa181f
 
aa181f
     item = gpp_get_special_oids();
aa181f
 
aa181f
@@ -314,7 +313,7 @@ gss_OID_set gpp_special_available_mechs(const gss_OID_set mechs)
aa181f
     if (maj) {
aa181f
         return GSS_C_NO_OID_SET;
aa181f
     }
aa181f
-    for (i = 0; i < mechs->count; i++) {
aa181f
+    for (size_t i = 0; i < mechs->count; i++) {
aa181f
         while (item) {
aa181f
             if (gpp_is_special_oid(&mechs->elements[i])) {
aa181f
                 maj = gss_add_oid_set_member(&min,