summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_access.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2013-01-09 21:27:13 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-21 22:17:34 +0100
commitf67c42ad2b6b23bda8232d3adb51ed75b9f30f38 (patch)
treeacbd92b7456aee5563d50dedf7752418cd1977f6 /src/providers/ipa/ipa_access.h
parentb860f8b6b6b03982c80268e9f6fd35f6455b6b37 (diff)
downloadsssd-f67c42ad2b6b23bda8232d3adb51ed75b9f30f38.tar.gz
sssd-f67c42ad2b6b23bda8232d3adb51ed75b9f30f38.tar.xz
sssd-f67c42ad2b6b23bda8232d3adb51ed75b9f30f38.zip
Remove hbac_ctx_be()
Diffstat (limited to 'src/providers/ipa/ipa_access.h')
-rw-r--r--src/providers/ipa/ipa_access.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/providers/ipa/ipa_access.h b/src/providers/ipa/ipa_access.h
index a4bc3dc10..551a17a09 100644
--- a/src/providers/ipa/ipa_access.h
+++ b/src/providers/ipa/ipa_access.h
@@ -75,17 +75,10 @@ struct hbac_ctx {
struct sysdb_attrs **servicegroups;
};
-/* Get BE context associated with HBAC context */
-static inline struct be_ctx *hbac_ctx_be(struct hbac_ctx *hbac_ctx)
-{
- struct be_req *req = hbac_ctx != NULL ? hbac_ctx->be_req : NULL;
- return req != NULL ? req->be_ctx : NULL;
-}
-
/* 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(hbac_ctx);
+ struct be_ctx *be_ctx = hbac_ctx->be_req->be_ctx;
return be_ctx != NULL ? be_ctx->ev : NULL;
}