summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-08-26 22:35:35 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:06 +1000
commit25b0da5c532bbaee819fe239217e2d2f2c81a6c6 (patch)
treed2bbe65e82c91f490b9836975ddcb25fa8c60f56 /source3
parentf20c78150946c2822722858c2f614babfd857317 (diff)
downloadsamba-25b0da5c532bbaee819fe239217e2d2f2c81a6c6.tar.gz
samba-25b0da5c532bbaee819fe239217e2d2f2c81a6c6.tar.bz2
samba-25b0da5c532bbaee819fe239217e2d2f2c81a6c6.zip
s3-privs More clarity in variable names
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/privileges_basic.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/privileges_basic.c b/source3/lib/privileges_basic.c
index 1cd9ef5b2f..5271c45a88 100644
--- a/source3/lib/privileges_basic.c
+++ b/source3/lib/privileges_basic.c
@@ -281,12 +281,12 @@ const char* get_privilege_dispname( const char *name )
at a time here.
*****************************************************************************/
-bool user_has_privileges(const struct security_token *token, const uint64_t *privilege)
+bool user_has_privileges(const struct security_token *token, const uint64_t *privilege_bit)
{
if ( !token )
return False;
- return is_privilege_assigned( &token->privilege_mask, privilege );
+ return is_privilege_assigned( &token->privilege_mask, privilege_bit );
}
/****************************************************************************
@@ -294,12 +294,12 @@ bool user_has_privileges(const struct security_token *token, const uint64_t *pri
at a time here.
*****************************************************************************/
-bool user_has_any_privilege(struct security_token *token, const uint64_t *privilege)
+bool user_has_any_privilege(struct security_token *token, const uint64_t *privilege_mask)
{
if ( !token )
return False;
- return is_any_privilege_assigned( &token->privilege_mask, privilege );
+ return is_any_privilege_assigned( &token->privilege_mask, privilege_mask );
}
/*******************************************************************