diff options
author | Andrew Bartlett <abartlet@samba.org> | 2010-09-03 20:30:50 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-09-11 18:46:12 +1000 |
commit | e3edd7ca3ad73ff81a6ffddfeae208b930766e86 (patch) | |
tree | 7e63003ec0d04e5506ae86be5deecfb75ea5e371 /source3/lib | |
parent | 4bf09967a40814619199a1ec6c7424612a767071 (diff) | |
download | samba-e3edd7ca3ad73ff81a6ffddfeae208b930766e86.tar.gz samba-e3edd7ca3ad73ff81a6ffddfeae208b930766e86.tar.bz2 samba-e3edd7ca3ad73ff81a6ffddfeae208b930766e86.zip |
s3-privs Add const
Signed-off-by: Andrew Tridgell <tridge@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/privileges.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index 5a54a14033..af4c0966f7 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -344,7 +344,7 @@ static bool grant_privilege_bitmap(const struct dom_sid *sid, const uint64_t pri Add a privilege based on its name *********************************************************************/ -bool grant_privilege_by_name(struct dom_sid *sid, const char *name) +bool grant_privilege_by_name(const struct dom_sid *sid, const char *name) { uint64_t mask; @@ -411,7 +411,7 @@ bool revoke_privilege_set(const struct dom_sid *sid, struct lsa_PrivilegeSet *se Revoke all privileges *********************************************************************/ -bool revoke_all_privileges( struct dom_sid *sid ) +bool revoke_all_privileges( const struct dom_sid *sid ) { return revoke_privilege_bitmap( sid, SE_ALL_PRIVS); } @@ -420,7 +420,7 @@ bool revoke_all_privileges( struct dom_sid *sid ) Add a privilege based on its name *********************************************************************/ -bool revoke_privilege_by_name(struct dom_sid *sid, const char *name) +bool revoke_privilege_by_name(const struct dom_sid *sid, const char *name) { uint64_t mask; |