s3-privs Remove extra pointer on privilege mask
authorAndrew Bartlett <abartlet@samba.org>
Fri, 3 Sep 2010 10:30:16 +0000 (20:30 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 9 Sep 2010 04:46:02 +0000 (14:46 +1000)
Now that this is a scalar, this isn't required.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
source3/lib/privileges.c

index 13d80ca99058ca9198dfb09f9a3856e580e4ea87..5a54a140333065d23fb29be02284325bca141efb 100644 (file)
@@ -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 );
 }
 
 /***************************************************************************