summaryrefslogtreecommitdiffstats
path: root/src/responder/nss
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-02-09 20:00:22 +0100
committerStephen Gallagher <sgallagh@redhat.com>2012-02-13 11:46:55 -0500
commit2cba1c86f48db866fc72738a32eecbbdcdf3dbdb (patch)
tree2ec2107d932d6451703a29d91783f443353460bf /src/responder/nss
parent2a283b7f55508f05e58e61490208b8464731dc40 (diff)
downloadsssd-2cba1c86f48db866fc72738a32eecbbdcdf3dbdb.tar.gz
sssd-2cba1c86f48db866fc72738a32eecbbdcdf3dbdb.tar.xz
sssd-2cba1c86f48db866fc72738a32eecbbdcdf3dbdb.zip
Remove setent structure when callback is called
Diffstat (limited to 'src/responder/nss')
-rw-r--r--src/responder/nss/nsssrv_cmd.c13
-rw-r--r--src/responder/nss/nsssrv_private.h1
2 files changed, 4 insertions, 10 deletions
diff --git a/src/responder/nss/nsssrv_cmd.c b/src/responder/nss/nsssrv_cmd.c
index 1c9160b7a..68f6e0bb4 100644
--- a/src/responder/nss/nsssrv_cmd.c
+++ b/src/responder/nss/nsssrv_cmd.c
@@ -77,11 +77,6 @@ int nss_cmd_done(struct nss_cmd_ctx *cmdctx, int ret)
/***************************
* Enumeration procedures *
***************************/
-struct tevent_req *nss_setent_get_req(struct getent_ctx *getent_ctx)
-{
- return setent_get_req(getent_ctx->reqs);
-}
-
errno_t nss_setent_add_ref(TALLOC_CTX *memctx,
struct getent_ctx *getent_ctx,
struct tevent_req *req)
@@ -91,12 +86,12 @@ errno_t nss_setent_add_ref(TALLOC_CTX *memctx,
void nss_setent_notify_error(struct getent_ctx *getent_ctx, errno_t ret)
{
- return setent_notify(getent_ctx->reqs, ret);
+ return setent_notify(&getent_ctx->reqs, ret);
}
void nss_setent_notify_done(struct getent_ctx *getent_ctx)
{
- return setent_notify_done(getent_ctx->reqs);
+ return setent_notify_done(&getent_ctx->reqs);
}
struct setent_ctx {
@@ -1403,7 +1398,7 @@ static errno_t nss_cmd_setpwent_step(struct setent_step_ctx *step_ctx)
}
/* Notify the waiting clients */
- setent_notify_done(nctx->pctx->reqs);
+ nss_setent_notify_done(nctx->pctx);
if (step_ctx->returned_to_mainloop) {
return EAGAIN;
@@ -2701,7 +2696,7 @@ static errno_t nss_cmd_setgrent_step(struct setent_step_ctx *step_ctx)
}
/* Notify the waiting clients */
- setent_notify_done(nctx->gctx->reqs);
+ nss_setent_notify_done(nctx->gctx);
if (step_ctx->returned_to_mainloop) {
return EAGAIN;
diff --git a/src/responder/nss/nsssrv_private.h b/src/responder/nss/nsssrv_private.h
index c0bf2ee2c..c6526595f 100644
--- a/src/responder/nss/nsssrv_private.h
+++ b/src/responder/nss/nsssrv_private.h
@@ -104,7 +104,6 @@ int nss_cmd_done(struct nss_cmd_ctx *cmdctx, int ret);
errno_t nss_setent_add_ref(TALLOC_CTX *memctx,
struct getent_ctx *getent_ctx,
struct tevent_req *req);
-struct tevent_req *nss_setent_get_req(struct getent_ctx *getent_ctx);
void nss_setent_notify_error(struct getent_ctx *getent_ctx, errno_t ret);
void nss_setent_notify_done(struct getent_ctx *getent_ctx);