summaryrefslogtreecommitdiffstats
path: root/src/providers/ipa/ipa_subdomains_id.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-11-28 03:24:58 +0000
committerJakub Hrozek <jhrozek@redhat.com>2012-12-04 12:58:22 +0100
commite11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a (patch)
treea58bc8619ce98a8231e436e281f81daf43142ebb /src/providers/ipa/ipa_subdomains_id.c
parent6ff0d2242fe93d694b81b29ab12289db4859e1dc (diff)
downloadsssd-e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a.tar.gz
sssd-e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a.tar.xz
sssd-e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a.zip
Use an entry type mask macro to filter entry types
Avoids hardcoding magic numbers everywhere and self documents why a mask is being applied.
Diffstat (limited to 'src/providers/ipa/ipa_subdomains_id.c')
-rw-r--r--src/providers/ipa/ipa_subdomains_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains_id.c b/src/providers/ipa/ipa_subdomains_id.c
index 518ff85d7..481b99806 100644
--- a/src/providers/ipa/ipa_subdomains_id.c
+++ b/src/providers/ipa/ipa_subdomains_id.c
@@ -85,7 +85,7 @@ struct tevent_req *ipa_get_subdom_acct_send(TALLOC_CTX *memctx,
}
state->sysdb = state->domain->sysdb;
- state->entry_type = (ar->entry_type & 0xFFF);
+ state->entry_type = (ar->entry_type & BE_REQ_TYPE_MASK);
state->filter = ar->filter_value;
state->filter_type = ar->filter_type;