mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
VFX: vxfs: Fixup some warnings
../../source3/modules/vfs_vxfs.c:343:6: error: unused variable ‘i’ [-Werror=unused-variable] int i, offset = 0; ^ ../../source3/modules/vfs_vxfs.c:342:17: error: unused variable ‘n_id’ [-Werror=unused-variable] uint32_t e_id, n_id; ^~~~ ../../source3/modules/vfs_vxfs.c:342:11: error: unused variable ‘e_id’ [-Werror=unused-variable] uint32_t e_id, n_id; ^~~~ ../../source3/modules/vfs_vxfs.c:341:35: error: unused variable ‘n_perm’ [-Werror=unused-variable] uint16_t e_type, n_type, e_perm, n_perm; ^~~~~~ ../../source3/modules/vfs_vxfs.c:341:27: error: unused variable ‘e_perm’ [-Werror=unused-variable] uint16_t e_type, n_type, e_perm, n_perm; ^~~~~~ ../../source3/modules/vfs_vxfs.c: In function ‘vxfs_compare’: ../../source3/modules/vfs_vxfs.c:407:6: error: unused variable ‘i’ [-Werror=unused-variable] int i, count = 0; ^ Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
748189b29c
commit
f4f1206c75
@ -338,9 +338,8 @@ static char * vxfs_compact_buf(char *e_buf, int *new_count, int count,
|
||||
static bool vxfs_compare_acls(char *e_buf, char *n_buf, int n_count,
|
||||
int e_count) {
|
||||
|
||||
uint16_t e_type, n_type, e_perm, n_perm;
|
||||
uint32_t e_id, n_id;
|
||||
int i, offset = 0;
|
||||
uint16_t e_type, n_type;
|
||||
int offset = 0;
|
||||
|
||||
if (!e_buf && !n_buf) {
|
||||
DEBUG(10, ("vfs_vxfs: Empty buffers!\n"));
|
||||
@ -404,7 +403,7 @@ static bool vxfs_compare(struct files_struct *fsp,
|
||||
{
|
||||
SMB_ACL_T existing_acl = NULL;
|
||||
bool ret = false;
|
||||
int i, count = 0;
|
||||
int count = 0;
|
||||
TALLOC_CTX *mem_ctx = talloc_tos();
|
||||
char *existing_buf = NULL, *new_buf = NULL, *compact_buf = NULL;
|
||||
int status;
|
||||
|
Loading…
Reference in New Issue
Block a user