From 234958be042980242fff6da936af674da877c5ef Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 6 Jan 2013 03:58:58 -0500 Subject: Refactor single domain initialization Bring it out of sysdb, which will slowly remove internal dependencies on domains and instead will always require them to be passed by callers. --- src/tests/sysdb_ssh-tests.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tests/sysdb_ssh-tests.c') diff --git a/src/tests/sysdb_ssh-tests.c b/src/tests/sysdb_ssh-tests.c index cb5bd4b30..013a1d43d 100644 --- a/src/tests/sysdb_ssh-tests.c +++ b/src/tests/sysdb_ssh-tests.c @@ -130,14 +130,14 @@ static int setup_sysdb_tests(struct sysdb_test_ctx **ctx) return ret; } - ret = sysdb_init_domain_and_sysdb(test_ctx, test_ctx->confdb, "local", - TESTS_PATH, - &test_ctx->domain, &test_ctx->sysdb); + ret = sssd_domain_init(test_ctx, test_ctx->confdb, "local", + TESTS_PATH, &test_ctx->domain); if (ret != EOK) { fail("Could not initialize connection to the sysdb (%d)", ret); talloc_free(test_ctx); return ret; } + test_ctx->sysdb = test_ctx->domain->sysdb; *ctx = test_ctx; return EOK; -- cgit