summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-06 15:47:05 -0700
committerJeremy Allison <jra@samba.org>2009-08-06 15:47:05 -0700
commit890dfe003c91f8df737e5e2e4e440e1a9f416ae8 (patch)
treedb71b9f101e3bec73c9a75bbffd3d3d05fbb51bb
parent650445fc3cb8f61fdb6e570e46226fff101bb174 (diff)
downloadsamba-890dfe003c91f8df737e5e2e4e440e1a9f416ae8.tar.gz
samba-890dfe003c91f8df737e5e2e4e440e1a9f416ae8.tar.bz2
samba-890dfe003c91f8df737e5e2e4e440e1a9f416ae8.zip
Remove a const warning.
Jeremy.
-rw-r--r--source3/include/proto.h3
-rw-r--r--source3/smbd/posix_acls.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 00cfd6129e..ccd8746603 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -6745,7 +6745,8 @@ int chmod_acl(connection_struct *conn, const char *name, mode_t mode);
int inherit_access_posix_acl(connection_struct *conn, const char *inherit_from_dir,
const char *name, mode_t mode);
int fchmod_acl(files_struct *fsp, mode_t mode);
-bool set_unix_posix_default_acl(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf,
+bool set_unix_posix_default_acl(connection_struct *conn, const char *fname,
+ const SMB_STRUCT_STAT *psbuf,
uint16 num_def_acls, const char *pdata);
bool set_unix_posix_acl(connection_struct *conn, files_struct *fsp, const char *fname, uint16 num_acls, const char *pdata);
SEC_DESC *get_nt_acl_no_snum( TALLOC_CTX *ctx, const char *fname);
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index 0a3b0dff75..8c5393871f 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -4360,7 +4360,7 @@ static SMB_ACL_T create_posix_acl_from_wire(connection_struct *conn, uint16 num_
on the directory.
****************************************************************************/
-bool set_unix_posix_default_acl(connection_struct *conn, const char *fname, SMB_STRUCT_STAT *psbuf,
+bool set_unix_posix_default_acl(connection_struct *conn, const char *fname, const SMB_STRUCT_STAT *psbuf,
uint16 num_def_acls, const char *pdata)
{
SMB_ACL_T def_acl = NULL;