diff options
author | Simo Sorce <simo@redhat.com> | 2012-11-28 03:24:58 +0000 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-04 12:58:22 +0100 |
commit | e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a (patch) | |
tree | a58bc8619ce98a8231e436e281f81daf43142ebb /src/providers/ipa/ipa_subdomains_id.c | |
parent | 6ff0d2242fe93d694b81b29ab12289db4859e1dc (diff) | |
download | sssd2-e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a.tar.gz sssd2-e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a.tar.xz sssd2-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.c | 2 |
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 518ff85d..481b9980 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; |