From 877b92e80bde510d5cd9f03dbf01e2bcf73ab072 Mon Sep 17 00:00:00 2001 From: Michal Židek Date: Wed, 9 Sep 2015 14:37:48 +0200 Subject: util: Update get_next_domain's interface Update get next domain to be able to include disbled domains and change the interface to accept flags instead of multiple booleans. Ticket: https://fedorahosted.org/sssd/ticket/2673 Reviewed-by: Jakub Hrozek --- src/monitor/monitor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/monitor') diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c index 02fd072a9..3776caba4 100644 --- a/src/monitor/monitor.c +++ b/src/monitor/monitor.c @@ -805,7 +805,7 @@ static int check_domain_ranges(struct sss_domain_info *domains) uint32_t id_min, id_max; while (dom) { - other = get_next_domain(dom, false); + other = get_next_domain(dom, 0); if (dom->id_max && dom->id_min > dom->id_max) { DEBUG(SSSDBG_CRIT_FAILURE, "Domain '%s' does not have a valid ID range\n", dom->name); @@ -821,9 +821,9 @@ static int check_domain_ranges(struct sss_domain_info *domains) "Domains '%s' and '%s' overlap in range %u - %u\n", dom->name, other->name, id_min, id_max); } - other = get_next_domain(other, false); + other = get_next_domain(other, 0); } - dom = get_next_domain(dom, false); + dom = get_next_domain(dom, 0); } return EOK; @@ -844,7 +844,7 @@ static int check_local_domain_unique(struct sss_domain_info *domains) break; } - dom = get_next_domain(dom, false); + dom = get_next_domain(dom, 0); } if (count > 1) { @@ -2424,7 +2424,7 @@ static int monitor_process_init(struct mt_ctx *ctx, /* start providers */ num_providers = 0; - for (dom = ctx->domains; dom; dom = get_next_domain(dom, false)) { + for (dom = ctx->domains; dom; dom = get_next_domain(dom, 0)) { ret = add_new_provider(ctx, dom->name, 0); if (ret != EOK && ret != ENOENT) { return ret; -- cgit