From e23781b3b304d1e69ad80af5ae9c0ed8d02cf996 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 30 Jul 2006 16:36:56 +0000 Subject: r17316: More C++ warnings -- 456 left (This used to be commit 1e4ee728df7eeafc1b4d533240acb032f73b4f5c) --- source3/modules/vfs_posixacl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/modules') diff --git a/source3/modules/vfs_posixacl.c b/source3/modules/vfs_posixacl.c index 6d7c2b3c00..c793d83068 100644 --- a/source3/modules/vfs_posixacl.c +++ b/source3/modules/vfs_posixacl.c @@ -172,7 +172,7 @@ static BOOL smb_ace_to_internal(acl_entry_t posix_ace, } switch(ace->a_type) { case SMB_ACL_USER: { - uid_t *puid = acl_get_qualifier(posix_ace); + uid_t *puid = (uid_t *)acl_get_qualifier(posix_ace); if (puid == NULL) { DEBUG(0, ("smb_acl_get_qualifier failed\n")); return False; @@ -183,7 +183,7 @@ static BOOL smb_ace_to_internal(acl_entry_t posix_ace, } case SMB_ACL_GROUP: { - gid_t *pgid = acl_get_qualifier(posix_ace); + gid_t *pgid = (uid_t *)acl_get_qualifier(posix_ace); if (pgid == NULL) { DEBUG(0, ("smb_acl_get_qualifier failed\n")); return False; @@ -219,9 +219,9 @@ static struct smb_acl_t *smb_acl_to_internal(acl_t acl) entry_id = ACL_NEXT_ENTRY; - result = SMB_REALLOC(result, sizeof(struct smb_acl_t) + - (sizeof(struct smb_acl_entry) * - (result->count+1))); + result = (struct smb_acl_t *)SMB_REALLOC( + result, sizeof(struct smb_acl_t) + + (sizeof(struct smb_acl_entry) * (result->count+1))); if (result == NULL) { DEBUG(0, ("SMB_REALLOC failed\n")); errno = ENOMEM; -- cgit