diff options
author | Jeremy Allison <jra@samba.org> | 2012-06-18 14:25:27 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-06-19 10:27:23 -0700 |
commit | 9b212d8df5a6f4120dbfa135915597650a301cfa (patch) | |
tree | 97eba8d6dd48a67feac43c271f9930c56acf4a95 /libcli/security | |
parent | e43b745f2156c31c3101b39c327911c16c431c2f (diff) | |
download | samba-9b212d8df5a6f4120dbfa135915597650a301cfa.tar.gz samba-9b212d8df5a6f4120dbfa135915597650a301cfa.tar.bz2 samba-9b212d8df5a6f4120dbfa135915597650a301cfa.zip |
Fix warning: variable ‘XX’ set but not used.
Diffstat (limited to 'libcli/security')
-rw-r--r-- | libcli/security/create_descriptor.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libcli/security/create_descriptor.c b/libcli/security/create_descriptor.c index 92528965d1..0cac2e4a5f 100644 --- a/libcli/security/create_descriptor.c +++ b/libcli/security/create_descriptor.c @@ -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 |