From 2cfd9562a4e7fae31c226c12a467d0225d42a89f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 31 Aug 2009 10:10:59 -0400 Subject: Turn enumeration into a boolean value --- server/responder/nss/nsssrv_cmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/responder/nss/nsssrv_cmd.c') diff --git a/server/responder/nss/nsssrv_cmd.c b/server/responder/nss/nsssrv_cmd.c index 30fbc15ae..88749e9e5 100644 --- a/server/responder/nss/nsssrv_cmd.c +++ b/server/responder/nss/nsssrv_cmd.c @@ -1022,7 +1022,7 @@ static void nss_cmd_setpwent_callback(void *ptr, int status, /* do not reply until all domain searches are done */ for (dom = dctx->domain->next; dom; dom = dom->next) { - if ((dom->enumerate & NSS_ENUM_USERS) != 0) break; + if (dom->enumerate != 0) break; } dctx->domain = dom; @@ -1150,7 +1150,7 @@ static int nss_cmd_setpwent_ext(struct cli_ctx *cctx, bool immediate) /* check if enumeration is enabled in any domain */ for (dom = cctx->rctx->domains; dom; dom = dom->next) { - if ((dom->enumerate & NSS_ENUM_USERS) != 0) break; + if (dom->enumerate != 0) break; } dctx->domain = dom; @@ -2350,7 +2350,7 @@ static void nss_cmd_setgrent_callback(void *ptr, int status, /* do not reply until all domain searches are done */ for (dom = dctx->domain->next; dom; dom = dom->next) { - if ((dom->enumerate & NSS_ENUM_GROUPS) != 0) break; + if (dom->enumerate != 0) break; } dctx->domain = dom; @@ -2478,7 +2478,7 @@ static int nss_cmd_setgrent_ext(struct cli_ctx *cctx, bool immediate) /* check if enumeration is enabled in any domain */ for (dom = cctx->rctx->domains; dom; dom = dom->next) { - if ((dom->enumerate & NSS_ENUM_GROUPS) != 0) break; + if (dom->enumerate != 0) break; } dctx->domain = dom; -- cgit