From 6aca93fb4d5d39a100b900a8c297d08629407960 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Tue, 23 Jun 2009 23:00:08 -0400 Subject: Rename sysdb_req to sysdb_handle. This sysdb_req has always really been a transaction handle and not a request. This is part of a set of patches to rewrite transaction support in sysdb to a hopefully better API, that will also let use use tevent_req async style to manipulate our cache. --- server/tools/sss_userdel.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'server/tools/sss_userdel.c') diff --git a/server/tools/sss_userdel.c b/server/tools/sss_userdel.c index 90dfdaf1..0222d00c 100644 --- a/server/tools/sss_userdel.c +++ b/server/tools/sss_userdel.c @@ -40,7 +40,7 @@ #endif struct user_del_ctx { - struct sysdb_req *sysreq; + struct sysdb_handle *handle; sysdb_callback_t next_fn; uid_t uid; @@ -61,22 +61,22 @@ static void userdel_done(void *pvt, int error, struct ldb_result *ignore) data->done = true; - sysdb_transaction_done(data->sysreq, error); + sysdb_transaction_done(data->handle, error); if (error) data->error = error; } -/* sysdb_req_fn_t */ -static void user_del(struct sysdb_req *req, void *pvt) +/* sysdb_fn_t */ +static void user_del(struct sysdb_handle *handle, void *pvt) { struct user_del_ctx *user_ctx; int ret; user_ctx = talloc_get_type(pvt, struct user_del_ctx); - user_ctx->sysreq = req; + user_ctx->handle = handle; - ret = sysdb_delete_entry(req, + ret = sysdb_delete_entry(handle, user_ctx->user_dn, userdel_done, user_ctx); -- cgit