[SCM] Samba Shared Repository - branch v3-2-test updated -
release-3-2-0pre2-2976-g59415cb
Herb Lewis
herb at samba.org
Thu Sep 4 21:33:23 GMT 2008
The branch, v3-2-test has been updated
via 59415cb8b3ce7981dbf576086e13675f343581a4 (commit)
from 2a085d5343ab954e1bd60c11033506dc7c9040e3 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test
- Log -----------------------------------------------------------------
commit 59415cb8b3ce7981dbf576086e13675f343581a4
Author: Herb Lewis <herb at samba.org>
Date: Thu Sep 4 14:32:09 2008 -0700
get rid of unneeded argument for get_alloc_methods as well
-----------------------------------------------------------------------
Summary of changes:
source/winbindd/idmap.c | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/winbindd/idmap.c b/source/winbindd/idmap.c
index 850aeb4..d601210 100644
--- a/source/winbindd/idmap.c
+++ b/source/winbindd/idmap.c
@@ -88,13 +88,11 @@ static struct idmap_methods *get_methods(const char *name)
return NULL;
}
-static struct idmap_alloc_methods *get_alloc_methods(
- struct idmap_alloc_backend *be,
- const char *name)
+static struct idmap_alloc_methods *get_alloc_methods(const char *name)
{
struct idmap_alloc_backend *b;
- for (b = be; b; b = b->next) {
+ for (b = alloc_backends; b; b = b->next) {
if (strequal(b->name, name)) {
return b->methods;
}
@@ -192,7 +190,7 @@ NTSTATUS smb_register_idmap_alloc(int version, const char *name,
return NT_STATUS_INVALID_PARAMETER;
}
- test = get_alloc_methods(alloc_backends, name);
+ test = get_alloc_methods(name);
if (test) {
DEBUG(0,("idmap_alloc module %s already registered!\n", name));
return NT_STATUS_OBJECT_NAME_COLLISION;
@@ -751,14 +749,12 @@ NTSTATUS idmap_init(void)
struct idmap_alloc_context);
IDMAP_CHECK_ALLOC(idmap_alloc_ctx);
- idmap_alloc_ctx->methods = get_alloc_methods(alloc_backends,
- alloc_backend);
+ idmap_alloc_ctx->methods = get_alloc_methods(alloc_backend);
if ( ! idmap_alloc_ctx->methods) {
ret = smb_probe_module("idmap", alloc_backend);
if (NT_STATUS_IS_OK(ret)) {
idmap_alloc_ctx->methods =
- get_alloc_methods(alloc_backends,
- alloc_backend);
+ get_alloc_methods(alloc_backend);
}
}
if (idmap_alloc_ctx->methods) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list