diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-18 16:58:02 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-08-31 10:18:16 +0200 |
commit | 56ac018db83bdd507bc32e76fd3404e1e4eb392d (patch) | |
tree | ebadb9db614ad4187a76841f49d5f97e75d0169f | |
parent | ef97c16c6729e3bc516c6719580f964dde1fa298 (diff) | |
download | samba-56ac018db83bdd507bc32e76fd3404e1e4eb392d.tar.gz |
idmap: Move idmap_init() under the static vars
Just moving code, idmap_init will need to reference the variables
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=11464
(cherry picked from commit d36de86639b7782e1e959d61917d8f19fdfc902c)
-rw-r--r-- | source3/winbindd/idmap.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index 1e2feb90477..0ba8fdae995 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -32,21 +32,6 @@ static_decl_idmap; -static void idmap_init(void) -{ - static bool initialized; - - if (initialized) { - return; - } - - DEBUG(10, ("idmap_init(): calling static_init_idmap\n")); - - static_init_idmap; - - initialized = true; -} - /** * Pointer to the backend methods. Modules register themselves here via * smb_register_idmap. @@ -79,6 +64,21 @@ static struct idmap_domain *passdb_idmap_domain; static struct idmap_domain **idmap_domains = NULL; static int num_domains = 0; +static void idmap_init(void) +{ + static bool initialized; + + if (initialized) { + return; + } + + DEBUG(10, ("idmap_init(): calling static_init_idmap\n")); + + static_init_idmap; + + initialized = true; +} + static struct idmap_methods *get_methods(const char *name) { struct idmap_backend *b; |