summaryrefslogtreecommitdiff
path: root/src/providers/proxy
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/proxy
parent6ff0d2242fe93d694b81b29ab12289db4859e1dc (diff)
downloadsssd-e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a.tar.gz
sssd-e11c7dc43f4ff9897e37cc0d793f8e1fb3b8453a.tar.bz2
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/proxy')
-rw-r--r--src/providers/proxy/proxy_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/proxy/proxy_id.c b/src/providers/proxy/proxy_id.c
index ce66fa12..87eb91b1 100644
--- a/src/providers/proxy/proxy_id.c
+++ b/src/providers/proxy/proxy_id.c
@@ -1347,7 +1347,7 @@ void proxy_get_account_info(struct be_req *breq)
return proxy_reply(breq, DP_ERR_FATAL, EINVAL, "Invalid attr type");
}
- switch (ar->entry_type & 0xFFF) {
+ switch (ar->entry_type & BE_REQ_TYPE_MASK) {
case BE_REQ_USER: /* user */
switch (ar->filter_type) {
case BE_FILTER_ENUM: