diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-03-02 14:34:45 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-04-12 09:22:14 -0400 |
commit | a137f77b4ddff7f0651ffda710cec1f01618d7a9 (patch) | |
tree | 9e07617832adeb87d3e4d5b5a66c1697392ecd2a /src/tests | |
parent | 9def019030f844e429c067c7cca27ff99c921527 (diff) | |
download | sssd-a137f77b4ddff7f0651ffda710cec1f01618d7a9.tar.gz sssd-a137f77b4ddff7f0651ffda710cec1f01618d7a9.tar.bz2 sssd-a137f77b4ddff7f0651ffda710cec1f01618d7a9.zip |
sysdb: convert sysdb_store_custom
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/sysdb-tests.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/tests/sysdb-tests.c b/src/tests/sysdb-tests.c index d5ca6e41..008456c2 100644 --- a/src/tests/sysdb-tests.c +++ b/src/tests/sysdb-tests.c @@ -708,8 +708,6 @@ static void test_remove_group_member(struct tevent_req *req) test_return(data, ret); } -static void test_store_custom_done(struct tevent_req *subreq); - static void test_store_custom(struct tevent_req *subreq) { struct test_data *data = tevent_req_callback_data(subreq, @@ -728,22 +726,9 @@ static void test_store_custom(struct tevent_req *subreq) return test_return(data, ENOMEM); } - subreq = sysdb_store_custom_send(data, data->ev, data->handle, - data->ctx->domain, object_name, - CUSTOM_TEST_CONTAINER, data->attrs); - if (!subreq) { - return test_return(data, ENOMEM); - } - tevent_req_set_callback(subreq, test_store_custom_done, data); -} - -static void test_store_custom_done(struct tevent_req *subreq) -{ - struct test_data *data = tevent_req_callback_data(subreq, struct test_data); - int ret; - - ret = sysdb_store_custom_recv(subreq); - talloc_zfree(subreq); + ret = sysdb_store_custom(data, data->handle->ctx, + data->ctx->domain, object_name, + CUSTOM_TEST_CONTAINER, data->attrs); return test_return(data, ret); } |