summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_cache.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-11 00:03:58 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-11 00:03:58 +0000
commitabeb0f50ea3e7ac254aa8746e074f118fdb62db1 (patch)
tree60a7f16a18c1100ee0eb21df12851fc0123beb27 /source3/nsswitch/winbindd_cache.c
parentbf5a0e6717f786d4f623e3cca9f846a9413f82d5 (diff)
downloadsamba-abeb0f50ea3e7ac254aa8746e074f118fdb62db1.tar.gz
samba-abeb0f50ea3e7ac254aa8746e074f118fdb62db1.tar.bz2
samba-abeb0f50ea3e7ac254aa8746e074f118fdb62db1.zip
got rid of start_ndx from query_user_list()
(This used to be commit 1c909afe76566807fb576c965eb869f98e72f2bd)
Diffstat (limited to 'source3/nsswitch/winbindd_cache.c')
-rw-r--r--source3/nsswitch/winbindd_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index d10c4c1fc1..304c686b97 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -430,7 +430,7 @@ static void wcache_save_user(struct winbindd_domain *domain, NTSTATUS status, WI
/* Query display info. This is the basic user list fn */
static NTSTATUS query_user_list(struct winbindd_domain *domain,
TALLOC_CTX *mem_ctx,
- uint32 *start_ndx, uint32 *num_entries,
+ uint32 *num_entries,
WINBIND_USERINFO **info)
{
struct winbind_cache *cache = get_cache(domain);
@@ -440,7 +440,7 @@ static NTSTATUS query_user_list(struct winbindd_domain *domain,
if (!cache->tdb) goto do_query;
- centry = wcache_fetch(cache, domain, "UL/%s/%d", domain->name, *start_ndx);
+ centry = wcache_fetch(cache, domain, "UL/%s", domain->name);
if (!centry) goto do_query;
*num_entries = centry_uint32(centry);
@@ -467,7 +467,7 @@ do_query:
return NT_STATUS_SERVER_DISABLED;
}
- status = cache->backend->query_user_list(domain, mem_ctx, start_ndx, num_entries, info);
+ status = cache->backend->query_user_list(domain, mem_ctx, num_entries, info);
/* and save it */
refresh_sequence_number(domain, True);
@@ -492,7 +492,7 @@ do_query:
wcache_save_user(domain, NT_STATUS_OK, &(*info)[i]);
}
}
- centry_end(centry, "UL/%s/%d", domain->name, *start_ndx);
+ centry_end(centry, "UL/%s", domain->name);
centry_free(centry);
skip_save: