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