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/ldap | |
parent | 6ff0d2242fe93d694b81b29ab12289db4859e1dc (diff) | |
download | sssd-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/ldap')
-rw-r--r-- | src/providers/ldap/ldap_id.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_id.c b/src/providers/ldap/ldap_id.c index 13a8212bc..a258e827b 100644 --- a/src/providers/ldap/ldap_id.c +++ b/src/providers/ldap/ldap_id.c @@ -929,7 +929,7 @@ void sdap_handle_account_info(struct be_req *breq, struct sdap_id_ctx *ctx) ar = talloc_get_type(breq->req_data, struct be_acct_req); - switch (ar->entry_type & 0xFFF) { + switch (ar->entry_type & BE_REQ_TYPE_MASK) { case BE_REQ_USER: /* user */ /* skip enumerations on demand */ |