diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-06-23 23:00:08 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-07-03 11:07:36 -0400 |
commit | 6aca93fb4d5d39a100b900a8c297d08629407960 (patch) | |
tree | 6472343594f91db611564a497b0e1c5948710a19 /server/tools/sss_userdel.c | |
parent | af6b9f749f3f9ade3727bb0b43baffbdbd26cdcb (diff) | |
download | sssd-6aca93fb4d5d39a100b900a8c297d08629407960.tar.gz sssd-6aca93fb4d5d39a100b900a8c297d08629407960.tar.xz sssd-6aca93fb4d5d39a100b900a8c297d08629407960.zip |
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.
Diffstat (limited to 'server/tools/sss_userdel.c')
-rw-r--r-- | server/tools/sss_userdel.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/tools/sss_userdel.c b/server/tools/sss_userdel.c index 90dfdaf16..0222d00cc 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); |