summaryrefslogtreecommitdiffstats
path: root/source/sam
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-02-07 22:42:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:36 -0500
commit82c4e2f37f1f4c581cd7c792808c9a81ef80db94 (patch)
treea241e5079dded7b89dd8a23734af1df2cab67a31 /source/sam
parentba0c711a4386833da7cdf15bfd0f90177eb41bad (diff)
downloadsamba-82c4e2f37f1f4c581cd7c792808c9a81ef80db94.tar.gz
samba-82c4e2f37f1f4c581cd7c792808c9a81ef80db94.tar.xz
samba-82c4e2f37f1f4c581cd7c792808c9a81ef80db94.zip
r5272: BUG 2132, 2134: patch from Jason Mader <jason@ncac.gwu.edu> to remove unused variables
Diffstat (limited to 'source/sam')
-rw-r--r--source/sam/idmap_ldap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/sam/idmap_ldap.c b/source/sam/idmap_ldap.c
index 28fdbab77e5..5d6931e52b0 100644
--- a/source/sam/idmap_ldap.c
+++ b/source/sam/idmap_ldap.c
@@ -124,7 +124,6 @@ static BOOL sid_in_use(struct ldap_idmap_state *state,
fstring filter;
fstring sid_string;
LDAPMessage *result = NULL;
- int count;
int rc;
char *sid_attr[] = {LDAP_ATTRIBUTE_SID, NULL};
@@ -144,7 +143,7 @@ static BOOL sid_in_use(struct ldap_idmap_state *state,
return True;
}
- if ((count = ldap_count_entries(state->smbldap_state->ldap_struct, result)) > 0) {
+ if ((ldap_count_entries(state->smbldap_state->ldap_struct, result)) > 0) {
DEBUG(3, ("Sid %s already in use - trying next RID\n",
sid_string));
ldap_msgfree(result);
@@ -168,7 +167,6 @@ static NTSTATUS ldap_next_rid(struct ldap_idmap_state *state, uint32 *rid,
int rid_type)
{
NTSTATUS ret = NT_STATUS_UNSUCCESSFUL;
- int rc;
LDAPMessage *domain_result = NULL;
LDAPMessage *entry = NULL;
char *dn;
@@ -291,7 +289,7 @@ static NTSTATUS ldap_next_rid(struct ldap_idmap_state *state, uint32 *rid,
}
}
- if ((rc = smbldap_modify(state->smbldap_state, dn, mods)) == LDAP_SUCCESS) {
+ if ((smbldap_modify(state->smbldap_state, dn, mods)) == LDAP_SUCCESS) {
DOM_SID dom_sid;
DOM_SID sid;
pstring domain_sid_string;