More neccessary const.
authorJeremy Allison <jra@samba.org>
Fri, 8 Oct 2010 23:51:24 +0000 (16:51 -0700)
committerJeremy Allison <jra@samba.org>
Sat, 9 Oct 2010 01:47:25 +0000 (01:47 +0000)
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct  9 01:47:25 UTC 2010 on sn-devel-104

source3/include/proto.h
source3/lib/secdesc.c

index 71a7baf667387032c0c535c454ba7254c95bc713..6094742c8b3c6a1540680441da644963b5b76650 100644 (file)
@@ -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);
index 11256817a5b017658c405ba4ab1f0edf2d5fed72..4c846282909ab4bf1414efc29dc5e72f45cb9d5e 100644 (file)
@@ -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;