Skip to content

Commit

Permalink
SUDO: use size_t instead of int in for cycles
Browse files Browse the repository at this point in the history
So we compare proper data types.

Reviewed-by: Jakub Hrozek <[email protected]>
Reviewed-by: Lukáš Slebodník <[email protected]>
(cherry picked from commit 15ebeed)
  • Loading branch information
pbrezina authored and Lukas Slebodnik committed Dec 15, 2015
1 parent 32c7b5c commit 7435446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/ldap/sdap_async_sudo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 7435446

Please sign in to comment.