summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-08 16:51:24 -0700
committerJeremy Allison <jra@samba.org>2010-10-09 01:47:25 +0000
commit9e1e581120d966f40d3c781fc92b18fc5d63c38a (patch)
treee405a416981a3c21ceea4331ddab7bfc99619f20
parentb69bec03cc210ccb2c5373115352a57ca6363f04 (diff)
downloadsamba-9e1e581120d966f40d3c781fc92b18fc5d63c38a.tar.gz
samba-9e1e581120d966f40d3c781fc92b18fc5d63c38a.tar.bz2
samba-9e1e581120d966f40d3c781fc92b18fc5d63c38a.zip
More neccessary const.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Oct 9 01:47:25 UTC 2010 on sn-devel-104
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/lib/secdesc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 71a7baf667..6094742c8b 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -691,7 +691,7 @@ struct security_descriptor *make_standard_sec_desc(TALLOC_CTX *ctx, const struct
struct security_acl *dacl, size_t *sd_size);
struct sec_desc_buf *make_sec_desc_buf(TALLOC_CTX *ctx, size_t len, struct security_descriptor *sec_desc);
struct sec_desc_buf *dup_sec_desc_buf(TALLOC_CTX *ctx, struct sec_desc_buf *src);
-NTSTATUS sec_desc_add_sid(TALLOC_CTX *ctx, struct security_descriptor **psd, struct dom_sid *sid, uint32 mask, size_t *sd_size);
+NTSTATUS sec_desc_add_sid(TALLOC_CTX *ctx, struct security_descriptor **psd, const struct dom_sid *sid, uint32 mask, size_t *sd_size);
NTSTATUS sec_desc_mod_sid(struct security_descriptor *sd, struct dom_sid *sid, uint32 mask);
NTSTATUS sec_desc_del_sid(TALLOC_CTX *ctx, struct security_descriptor **psd, struct dom_sid *sid, size_t *sd_size);
bool sd_has_inheritable_components(const struct security_descriptor *parent_ctr, bool container);
diff --git a/source3/lib/secdesc.c b/source3/lib/secdesc.c
index 11256817a5..4c84628290 100644
--- a/source3/lib/secdesc.c
+++ b/source3/lib/secdesc.c
@@ -420,7 +420,7 @@ struct sec_desc_buf *dup_sec_desc_buf(TALLOC_CTX *ctx, struct sec_desc_buf *src)
Add a new SID with its permissions to struct security_descriptor.
********************************************************************/
-NTSTATUS sec_desc_add_sid(TALLOC_CTX *ctx, struct security_descriptor **psd, struct dom_sid *sid, uint32 mask, size_t *sd_size)
+NTSTATUS sec_desc_add_sid(TALLOC_CTX *ctx, struct security_descriptor **psd, const struct dom_sid *sid, uint32 mask, size_t *sd_size)
{
struct security_descriptor *sd = 0;
struct security_acl *dacl = 0;