summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-02-17 14:12:40 -0800
committerJeremy Allison <jra@samba.org>2012-02-18 06:22:40 +0100
commit21528da9cd12a4f5c3792a482a5d18fe946a6f7a (patch)
tree4b8c37725dd728e00f25a8b4e2e9b52d7ff7fd5a /source3/winbindd
parente786e8fef9960aadf1e94c70c0fb7ec18c1ed237 (diff)
downloadsamba-21528da9cd12a4f5c3792a482a5d18fe946a6f7a.tar.gz
samba-21528da9cd12a4f5c3792a482a5d18fe946a6f7a.tar.bz2
samba-21528da9cd12a4f5c3792a482a5d18fe946a6f7a.zip
Fix a bunch of "unused variable" warnings.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/wb_group_members.c4
-rw-r--r--source3/winbindd/winbindd_cache.c3
-rw-r--r--source3/winbindd/winbindd_rpc.c2
3 files changed, 2 insertions, 7 deletions
diff --git a/source3/winbindd/wb_group_members.c b/source3/winbindd/wb_group_members.c
index 8776a8c7dd..e4b4c0ac33 100644
--- a/source3/winbindd/wb_group_members.c
+++ b/source3/winbindd/wb_group_members.c
@@ -355,7 +355,7 @@ static void wb_group_members_done(struct tevent_req *subreq)
subreq, struct tevent_req);
struct wb_group_members_state *state = tevent_req_data(
req, struct wb_group_members_state);
- int i, num_groups, new_users, new_groups;
+ int i, num_groups, new_groups;
int num_members = 0;
struct wbint_Principal *members = NULL;
NTSTATUS status;
@@ -366,7 +366,7 @@ static void wb_group_members_done(struct tevent_req *subreq)
return;
}
- new_users = new_groups = 0;
+ new_groups = 0;
for (i=0; i<num_members; i++) {
switch (members[i].type) {
case SID_NAME_DOM_GRP:
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index ffe3f38968..315202d618 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -1293,7 +1293,6 @@ NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
struct winbind_cache *cache = get_cache(domain);
struct cache_entry *centry = NULL;
NTSTATUS status;
- time_t t;
uint32 rid;
fstring tmp;
@@ -1324,8 +1323,6 @@ NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
return NT_STATUS_OBJECT_NAME_NOT_FOUND;
}
- t = centry_time(centry);
-
/* In the salted case this isn't actually the nt_hash itself,
but the MD5 of the salt + nt_hash. Let the caller
sort this out. It can tell as we only return the cached_salt
diff --git a/source3/winbindd/winbindd_rpc.c b/source3/winbindd/winbindd_rpc.c
index e911487324..8a11cb2420 100644
--- a/source3/winbindd/winbindd_rpc.c
+++ b/source3/winbindd/winbindd_rpc.c
@@ -972,7 +972,6 @@ NTSTATUS rpc_trusted_domains(TALLOC_CTX *mem_ctx,
do {
struct lsa_DomainList dom_list;
- uint32_t start_idx;
uint32_t i;
/*
@@ -995,7 +994,6 @@ NTSTATUS rpc_trusted_domains(TALLOC_CTX *mem_ctx,
}
}
- start_idx = count;
count += dom_list.count;
array = talloc_realloc(mem_ctx,