From a137f77b4ddff7f0651ffda710cec1f01618d7a9 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 2 Mar 2010 14:34:45 -0500 Subject: sysdb: convert sysdb_store_custom --- src/tests/sysdb-tests.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) (limited to 'src/tests') 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); } -- cgit