diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-14 17:04:00 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-02-10 22:08:47 +0100 |
commit | 0232747f04b650796db56fd7b487aee8a96fab03 (patch) | |
tree | 0c0329a59cbb66b1e4ea4983cd034dc9015245dc /src/tools/sss_cache.c | |
parent | 95e94691178297f2b8225a83d43ae388cab04b45 (diff) | |
download | sssd-0232747f04b650796db56fd7b487aee8a96fab03.tar.gz sssd-0232747f04b650796db56fd7b487aee8a96fab03.tar.xz sssd-0232747f04b650796db56fd7b487aee8a96fab03.zip |
Add function get_next_domain()
Use this function instead of explicitly calling domain->next
This function allows to get the next primary domain or to descend into the
subdomains and replaces also get_next_dom_or_subdom()
Diffstat (limited to 'src/tools/sss_cache.c')
-rw-r--r-- | src/tools/sss_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/sss_cache.c b/src/tools/sss_cache.c index 2fb75ad60..db6c792cd 100644 --- a/src/tools/sss_cache.c +++ b/src/tools/sss_cache.c @@ -103,7 +103,7 @@ int main(int argc, const char *argv[]) goto done; } - for (dinfo = tctx->domains; dinfo; dinfo = dinfo->next) { + for (dinfo = tctx->domains; dinfo; dinfo = get_next_domain(dinfo, false)) { sysdb = dinfo->sysdb; /* Update filters for each domain */ |