diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-08 14:02:53 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-15 10:53:03 +0100 |
commit | f91e4aacb78d33791efcd744000597d5254dac4b (patch) | |
tree | 3e0069ee92bb016d3241876cbeef3ae9e457a257 /src/db | |
parent | b353437811527daf305fceef5f07e990c50d62ca (diff) | |
download | sssd-f91e4aacb78d33791efcd744000597d5254dac4b.tar.gz sssd-f91e4aacb78d33791efcd744000597d5254dac4b.tar.bz2 sssd-f91e4aacb78d33791efcd744000597d5254dac4b.zip |
Stop creating fake sysdb contexts
Now that the sysdb context does not contain anymore domain related data
we can simply stop creating faxe sysdb context and just reference the
parent context.
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb.h | 5 | ||||
-rw-r--r-- | src/db/sysdb_subdomains.c | 20 |
2 files changed, 0 insertions, 25 deletions
diff --git a/src/db/sysdb.h b/src/db/sysdb.h index 25304289..6dd833bf 100644 --- a/src/db/sysdb.h +++ b/src/db/sysdb.h @@ -373,11 +373,6 @@ errno_t sysdb_update_subdomains(struct sysdb_ctx *sysdb, int num_subdoms, struct sysdb_subdom *subdoms); -errno_t sysdb_get_subdomain_context(TALLOC_CTX *mem_ctx, - struct sysdb_ctx *sysdb, - struct sss_domain_info *subdomain, - struct sysdb_ctx **subdomain_ctx); - errno_t sysdb_master_domain_get_info(TALLOC_CTX *mem_ctx, struct sysdb_ctx *sysdb, struct sss_domain_info *domain, diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index 69806517..9b295d7e 100644 --- a/src/db/sysdb_subdomains.c +++ b/src/db/sysdb_subdomains.c @@ -547,23 +547,3 @@ done: talloc_free(tmp_ctx); return ret; } - -errno_t sysdb_get_subdomain_context(TALLOC_CTX *mem_ctx, - struct sysdb_ctx *sysdb, - struct sss_domain_info *subdomain, - struct sysdb_ctx **subdomain_ctx) -{ - struct sysdb_ctx *new_ctx; - - new_ctx = talloc_zero(mem_ctx, struct sysdb_ctx); - if (new_ctx == NULL) { - return ENOMEM; - } - - new_ctx->ldb = sysdb->ldb; - new_ctx->ldb_file = sysdb->ldb_file; - - *subdomain_ctx = new_ctx; - - return EOK; -} |