From 74354462881737933e55eab3765608c5e6411059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Fri, 11 Dec 2015 15:52:41 +0100 Subject: [PATCH] SUDO: use size_t instead of int in for cycles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So we compare proper data types. Reviewed-by: Jakub Hrozek Reviewed-by: Lukáš Slebodník (cherry picked from commit 15ebeedaad83cc5dcf896cfcdea850227fdc46b5) --- src/providers/ldap/sdap_async_sudo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/ldap/sdap_async_sudo.c b/src/providers/ldap/sdap_async_sudo.c index c2ac6988d6d..bd19de12347 100644 --- a/src/providers/ldap/sdap_async_sudo.c +++ b/src/providers/ldap/sdap_async_sudo.c @@ -155,7 +155,7 @@ static void sdap_sudo_load_sudoers_done(struct tevent_req *subreq) struct sysdb_attrs **attrs = NULL; size_t count; int ret; - int i; + size_t i; req = tevent_req_callback_data(subreq, struct tevent_req); state = tevent_req_data(req, struct sdap_sudo_load_sudoers_state); @@ -224,7 +224,7 @@ static int sdap_sudo_purge_sudoers(struct sss_domain_info *dom, struct sysdb_attrs **rules) { const char *name; - int i; + size_t i; errno_t ret; if (filter == NULL) {