s4:dcesrv_samr.c - Remove unused variable
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 26 Feb 2010 10:53:49 +0000 (11:53 +0100)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Fri, 26 Feb 2010 10:54:45 +0000 (11:54 +0100)
source4/rpc_server/samr/dcesrv_samr.c

index 61a9f1350ba964e8b1b40d9b6a47e976c3a34140..edfacfb4f4b776db2abacea03b46709f8ecd9580 100644 (file)
@@ -1939,7 +1939,7 @@ static NTSTATUS dcesrv_samr_LookupRids(struct dcesrv_call_state *dce_call, TALLO
 {
        struct dcesrv_handle *h;
        struct samr_domain_state *d_state;
 {
        struct dcesrv_handle *h;
        struct samr_domain_state *d_state;
-       int i, total;
+       int i;
        NTSTATUS status = NT_STATUS_OK;
        struct lsa_String *names;
        uint32_t *ids;
        NTSTATUS status = NT_STATUS_OK;
        struct lsa_String *names;
        uint32_t *ids;
@@ -1960,8 +1960,6 @@ static NTSTATUS dcesrv_samr_LookupRids(struct dcesrv_call_state *dce_call, TALLO
        if ((names == NULL) || (ids == NULL))
                return NT_STATUS_NO_MEMORY;
 
        if ((names == NULL) || (ids == NULL))
                return NT_STATUS_NO_MEMORY;
 
-       total = 0;
-
        for (i=0; i<r->in.num_rids; i++) {
                struct ldb_message **res;
                int count;
        for (i=0; i<r->in.num_rids; i++) {
                struct ldb_message **res;
                int count;