mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
Fix warning: variable ‘XX’ set but not used.
This commit is contained in:
parent
e43b745f21
commit
9b212d8df5
@ -132,7 +132,6 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx,
|
||||
uint32_t i;
|
||||
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
|
||||
struct security_acl *tmp_acl = talloc_zero(mem_ctx, struct security_acl);
|
||||
struct dom_sid *co, *cg;
|
||||
if (!tmp_acl) {
|
||||
return NULL;
|
||||
}
|
||||
@ -140,8 +139,6 @@ static struct security_acl *calculate_inherited_from_parent(TALLOC_CTX *mem_ctx,
|
||||
if (!acl) {
|
||||
return NULL;
|
||||
}
|
||||
co = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_OWNER);
|
||||
cg = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_GROUP);
|
||||
|
||||
for (i=0; i < acl->num_aces; i++) {
|
||||
struct security_ace *ace = &acl->aces[i];
|
||||
@ -217,7 +214,6 @@ static struct security_acl *process_user_acl(TALLOC_CTX *mem_ctx,
|
||||
TALLOC_CTX *tmp_ctx = talloc_new(mem_ctx);
|
||||
struct security_acl *tmp_acl = talloc_zero(tmp_ctx, struct security_acl);
|
||||
struct security_acl *new_acl;
|
||||
struct dom_sid *co, *cg;
|
||||
|
||||
if (!acl)
|
||||
return NULL;
|
||||
@ -228,9 +224,6 @@ static struct security_acl *process_user_acl(TALLOC_CTX *mem_ctx,
|
||||
tmp_acl->revision = acl->revision;
|
||||
DEBUG(6,(__location__ ": acl revision %d\n", acl->revision));
|
||||
|
||||
co = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_OWNER);
|
||||
cg = dom_sid_parse_talloc(tmp_ctx, SID_CREATOR_GROUP);
|
||||
|
||||
for (i=0; i < acl->num_aces; i++){
|
||||
struct security_ace *ace = &acl->aces[i];
|
||||
/* Remove ID flags from user-provided ACEs
|
||||
|
Loading…
x
Reference in New Issue
Block a user