summaryrefslogtreecommitdiff
path: root/source3/include/smb_acls.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-07 17:44:24 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-12 05:26:16 +0200
commit6638d1036688f7b0f15a1a18c9a251ab0a7ab626 (patch)
tree31669a1f287161bc78256798602ce9e27b5cb997 /source3/include/smb_acls.h
parentac804f0d7f5a93ff2710e213d9213ad9960a15d6 (diff)
downloadsamba-6638d1036688f7b0f15a1a18c9a251ab0a7ab626.tar.gz
samba-6638d1036688f7b0f15a1a18c9a251ab0a7ab626.tar.bz2
samba-6638d1036688f7b0f15a1a18c9a251ab0a7ab626.zip
smbd: Remove pre-allocation of ACL array in sys_acl_init()
Instead, this is just handled with realloc in sys_acl_create_entry() This allows us to remove the size element from the SMB_ACL_T. Andrew Bartlett
Diffstat (limited to 'source3/include/smb_acls.h')
-rw-r--r--source3/include/smb_acls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/include/smb_acls.h b/source3/include/smb_acls.h
index 750bbc666a..dbcf3b7269 100644
--- a/source3/include/smb_acls.h
+++ b/source3/include/smb_acls.h
@@ -44,7 +44,7 @@ int sys_acl_clear_perms(SMB_ACL_PERMSET_T permset_d);
int sys_acl_add_perm(SMB_ACL_PERMSET_T permset_d, SMB_ACL_PERM_T perm);
int sys_acl_get_perm(SMB_ACL_PERMSET_T permset_d, SMB_ACL_PERM_T perm);
char *sys_acl_to_text(const struct smb_acl_t *acl_d, ssize_t *len_p);
-SMB_ACL_T sys_acl_init(int count);
+SMB_ACL_T sys_acl_init(void);
int sys_acl_create_entry(SMB_ACL_T *acl_p, SMB_ACL_ENTRY_T *entry_p);
int sys_acl_set_tag_type(SMB_ACL_ENTRY_T entry_d, SMB_ACL_TAG_T tag_type);
int sys_acl_set_qualifier(SMB_ACL_ENTRY_T entry_d, void *qual_p);