summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-09-03 20:30:16 +1000
committerAndrew Bartlett <abartlet@samba.org>2010-09-11 18:46:12 +1000
commit4bf09967a40814619199a1ec6c7424612a767071 (patch)
tree6cfe0392c0778893684a19cdf56011f3f9ad1a03 /source3
parent86fdb4c152d40ce862dea0ca7b5790df4b168289 (diff)
downloadsamba-4bf09967a40814619199a1ec6c7424612a767071.tar.gz
samba-4bf09967a40814619199a1ec6c7424612a767071.tar.bz2
samba-4bf09967a40814619199a1ec6c7424612a767071.zip
s3-privs Remove extra pointer on privilege mask
Now that this is a scalar, this isn't required. Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/privileges.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c
index 13d80ca990..5a54a14033 100644
--- a/source3/lib/privileges.c
+++ b/source3/lib/privileges.c
@@ -116,7 +116,7 @@ static bool get_privileges( const struct dom_sid *sid, uint64_t *mask )
Store the privilege mask (set) for a given SID
****************************************************************************/
-static bool set_privileges( const struct dom_sid *sid, uint64_t *mask )
+static bool set_privileges( const struct dom_sid *sid, uint64_t mask )
{
struct db_context *db = get_account_pol_db();
uint8_t privbuf[8];
@@ -139,7 +139,7 @@ static bool set_privileges( const struct dom_sid *sid, uint64_t *mask )
fstr_sprintf(keystr, "%s%s", PRIVPREFIX, sid_to_fstring(tmp, sid));
/* This writes the 64 bit bitmask out in little endian format */
- SBVAL(privbuf,0,*mask);
+ SBVAL(privbuf,0,mask);
data.dptr = privbuf;
data.dsize = sizeof(privbuf);
@@ -337,7 +337,7 @@ static bool grant_privilege_bitmap(const struct dom_sid *sid, const uint64_t pri
DEBUGADD( 10, ("new privilege mask: 0x%llx\n", (unsigned long long)new_mask));
- return set_privileges( sid, &new_mask );
+ return set_privileges( sid, new_mask );
}
/*********************************************************************
@@ -391,7 +391,7 @@ static bool revoke_privilege_bitmap(const struct dom_sid *sid, const uint64_t pr
DEBUGADD( 10, ("new privilege mask: 0x%llx\n", (unsigned long long)mask));
- return set_privileges( sid, &mask );
+ return set_privileges( sid, mask );
}
/***************************************************************************