Fix warning: variable ‘XX’ set but not used.
authorJeremy Allison <jra@samba.org>
Mon, 18 Jun 2012 21:25:27 +0000 (14:25 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 19 Jun 2012 17:27:23 +0000 (10:27 -0700)
libcli/security/create_descriptor.c

index 92528965d1fb63e86c1c7e290b593929f58ff9ba..0cac2e4a5fc656b153a0f60224987e61a679cd36 100644 (file)
@@ -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