diff options
author | Simo Sorce <simo@redhat.com> | 2013-01-09 21:29:13 -0500 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-21 22:17:34 +0100 |
commit | 051491353666d0be95316dc62a1e7f280b4bad57 (patch) | |
tree | 4b377c079af5c0d9883af44939449678e85d85a6 | |
parent | f67c42ad2b6b23bda8232d3adb51ed75b9f30f38 (diff) | |
download | sssd-051491353666d0be95316dc62a1e7f280b4bad57.tar.gz sssd-051491353666d0be95316dc62a1e7f280b4bad57.tar.bz2 sssd-051491353666d0be95316dc62a1e7f280b4bad57.zip |
Remove hbac_ctx_ev()
-rw-r--r-- | src/providers/ipa/ipa_access.c | 6 | ||||
-rw-r--r-- | src/providers/ipa/ipa_access.h | 7 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/providers/ipa/ipa_access.c b/src/providers/ipa/ipa_access.c index 39bbfb74..03011c31 100644 --- a/src/providers/ipa/ipa_access.c +++ b/src/providers/ipa/ipa_access.c @@ -340,7 +340,7 @@ static int hbac_get_host_info_step(struct hbac_ctx *hbac_ctx) } req = ipa_host_info_send(hbac_ctx, - hbac_ctx_ev(hbac_ctx), + hbac_ctx->be_req->be_ctx->ev, sdap_id_op_handle(hbac_ctx->sdap_op), hbac_ctx_sdap_id_ctx(hbac_ctx)->opts, hostname, @@ -374,7 +374,7 @@ static void hbac_get_service_info_step(struct tevent_req *req) /* Get services and service groups */ req = ipa_hbac_service_info_send(hbac_ctx, - hbac_ctx_ev(hbac_ctx), + hbac_ctx->be_req->be_ctx->ev, sdap_id_op_handle(hbac_ctx->sdap_op), hbac_ctx_sdap_id_ctx(hbac_ctx)->opts, hbac_ctx->search_bases); @@ -439,7 +439,7 @@ static void hbac_get_rule_info_step(struct tevent_req *req) /* Get the list of applicable rules */ req = ipa_hbac_rule_info_send(hbac_ctx, hbac_ctx->get_deny_rules, - hbac_ctx_ev(hbac_ctx), + hbac_ctx->be_req->be_ctx->ev, sdap_id_op_handle(hbac_ctx->sdap_op), hbac_ctx_sdap_id_ctx(hbac_ctx)->opts, hbac_ctx->search_bases, diff --git a/src/providers/ipa/ipa_access.h b/src/providers/ipa/ipa_access.h index 551a17a0..8f330625 100644 --- a/src/providers/ipa/ipa_access.h +++ b/src/providers/ipa/ipa_access.h @@ -75,13 +75,6 @@ struct hbac_ctx { struct sysdb_attrs **servicegroups; }; -/* Get tevent context associated with HBAC context */ -static inline struct tevent_context *hbac_ctx_ev(struct hbac_ctx *hbac_ctx) -{ - struct be_ctx *be_ctx = hbac_ctx->be_req->be_ctx; - return be_ctx != NULL ? be_ctx->ev : NULL; -} - /* Get sdap_id_ctx associated with HBAC context */ static inline struct sdap_id_ctx *hbac_ctx_sdap_id_ctx(struct hbac_ctx *hbac_ctx) { |