summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-05-08 14:11:27 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-05-09 04:21:05 +0200
commitfc4c06f284d88b6c1997768dd448e2dac80739cb (patch)
tree6ac7dbc5f09b396e7269cc327a4d2bf0007a0c76
parent9ef47b8fe3a8e1d940946ae611b807fa2cbd5b70 (diff)
downloadsamba-fc4c06f284d88b6c1997768dd448e2dac80739cb.tar.gz
samba-fc4c06f284d88b6c1997768dd448e2dac80739cb.tar.bz2
samba-fc4c06f284d88b6c1997768dd448e2dac80739cb.zip
s3-lib: Add const to sys_acl_to_text
-rw-r--r--source3/include/proto.h2
-rw-r--r--source3/lib/sysacls.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 686b230e59..d45ec888f6 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -270,7 +270,7 @@ void *sys_acl_get_qualifier(SMB_ACL_ENTRY_T entry_d);
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(SMB_ACL_T acl_d, ssize_t *len_p);
+char *sys_acl_to_text(const struct smb_acl_t *acl_d, ssize_t *len_p);
SMB_ACL_T sys_acl_init(int count);
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);
diff --git a/source3/lib/sysacls.c b/source3/lib/sysacls.c
index bf0b338a0f..b0a3479a62 100644
--- a/source3/lib/sysacls.c
+++ b/source3/lib/sysacls.c
@@ -148,7 +148,7 @@ int sys_acl_get_perm(SMB_ACL_PERMSET_T permset_d, SMB_ACL_PERM_T perm)
return *permset_d & perm;
}
-char *sys_acl_to_text(SMB_ACL_T acl_d, ssize_t *len_p)
+char *sys_acl_to_text(const struct smb_acl_t *acl_d, ssize_t *len_p)
{
int i;
int len, maxlen;