From fc4c06f284d88b6c1997768dd448e2dac80739cb Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 8 May 2012 14:11:27 +1000 Subject: s3-lib: Add const to sys_acl_to_text --- source3/include/proto.h | 2 +- source3/lib/sysacls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source3') 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; -- cgit