diff options
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/idmap.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_ad.c | 4 | ||||
-rw-r--r-- | source3/winbindd/idmap_ad_nss.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_autorid.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_hash/idmap_hash.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_ldap.c | 4 | ||||
-rw-r--r-- | source3/winbindd/idmap_nss.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_passdb.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_proto.h | 8 | ||||
-rw-r--r-- | source3/winbindd/idmap_rfc2307.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_rid.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_script.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_tdb.c | 2 | ||||
-rw-r--r-- | source3/winbindd/idmap_tdb2.c | 2 | ||||
-rw-r--r-- | source3/winbindd/nss_info.c | 2 | ||||
-rw-r--r-- | source3/winbindd/nss_info_template.c | 2 |
16 files changed, 21 insertions, 21 deletions
diff --git a/source3/winbindd/idmap.c b/source3/winbindd/idmap.c index dda8d0a4ba1..70f35aeee07 100644 --- a/source3/winbindd/idmap.c +++ b/source3/winbindd/idmap.c @@ -143,7 +143,7 @@ static bool idmap_init(void) DEBUG(10, ("idmap_init(): calling static_init_idmap\n")); - static_init_idmap; + static_init_idmap(NULL); initialized = true; diff --git a/source3/winbindd/idmap_ad.c b/source3/winbindd/idmap_ad.c index 1dbc3e46784..8c9e97bffc4 100644 --- a/source3/winbindd/idmap_ad.c +++ b/source3/winbindd/idmap_ad.c @@ -931,7 +931,7 @@ static struct idmap_methods ad_methods = { }; static_decl_idmap; -NTSTATUS idmap_ad_init(void) +NTSTATUS idmap_ad_init(TALLOC_CTX *ctx) { NTSTATUS status; @@ -941,7 +941,7 @@ NTSTATUS idmap_ad_init(void) return status; } - status = idmap_ad_nss_init(); + status = idmap_ad_nss_init(ctx); if (!NT_STATUS_IS_OK(status)) { return status; } diff --git a/source3/winbindd/idmap_ad_nss.c b/source3/winbindd/idmap_ad_nss.c index 8b27b36b2ca..87c78149656 100644 --- a/source3/winbindd/idmap_ad_nss.c +++ b/source3/winbindd/idmap_ad_nss.c @@ -394,7 +394,7 @@ static struct nss_info_methods nss_sfu20_methods = { Initialize the plugins ***********************************************************************/ -NTSTATUS idmap_ad_nss_init(void) +NTSTATUS idmap_ad_nss_init(TALLOC_CTX *mem_ctx) { NTSTATUS status; diff --git a/source3/winbindd/idmap_autorid.c b/source3/winbindd/idmap_autorid.c index 9793bfe5472..5748c8077c9 100644 --- a/source3/winbindd/idmap_autorid.c +++ b/source3/winbindd/idmap_autorid.c @@ -924,7 +924,7 @@ static struct idmap_methods autorid_methods = { }; static_decl_idmap; -NTSTATUS idmap_autorid_init(void) +NTSTATUS idmap_autorid_init(TALLOC_CTX *ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "autorid", &autorid_methods); diff --git a/source3/winbindd/idmap_hash/idmap_hash.c b/source3/winbindd/idmap_hash/idmap_hash.c index 36cc0f1e354..589027154d4 100644 --- a/source3/winbindd/idmap_hash/idmap_hash.c +++ b/source3/winbindd/idmap_hash/idmap_hash.c @@ -350,7 +350,7 @@ static struct nss_info_methods hash_nss_methods = { **********************************************************************/ static_decl_idmap; -NTSTATUS idmap_hash_init(void) +NTSTATUS idmap_hash_init(TALLOC_CTX *ctx) { static NTSTATUS idmap_status = NT_STATUS_UNSUCCESSFUL; static NTSTATUS nss_status = NT_STATUS_UNSUCCESSFUL; diff --git a/source3/winbindd/idmap_ldap.c b/source3/winbindd/idmap_ldap.c index 4b896c22190..39aa8330735 100644 --- a/source3/winbindd/idmap_ldap.c +++ b/source3/winbindd/idmap_ldap.c @@ -1074,8 +1074,8 @@ static struct idmap_methods idmap_ldap_methods = { .allocate_id = idmap_ldap_allocate_id, }; -NTSTATUS idmap_ldap_init(void); -NTSTATUS idmap_ldap_init(void) +NTSTATUS idmap_ldap_init(TALLOC_CTX *); +NTSTATUS idmap_ldap_init(TALLOC_CTX *ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "ldap", &idmap_ldap_methods); diff --git a/source3/winbindd/idmap_nss.c b/source3/winbindd/idmap_nss.c index 24f82178608..3fe98cbc729 100644 --- a/source3/winbindd/idmap_nss.c +++ b/source3/winbindd/idmap_nss.c @@ -202,7 +202,7 @@ static struct idmap_methods nss_methods = { .sids_to_unixids = idmap_nss_sids_to_unixids, }; -NTSTATUS idmap_nss_init(void) +NTSTATUS idmap_nss_init(TALLOC_CTX *mem_ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "nss", &nss_methods); } diff --git a/source3/winbindd/idmap_passdb.c b/source3/winbindd/idmap_passdb.c index cf8ad7446ce..75fc732cca0 100644 --- a/source3/winbindd/idmap_passdb.c +++ b/source3/winbindd/idmap_passdb.c @@ -86,7 +86,7 @@ static struct idmap_methods passdb_methods = { .sids_to_unixids = idmap_pdb_sids_to_unixids, }; -NTSTATUS idmap_passdb_init(void) +NTSTATUS idmap_passdb_init(TALLOC_CTX *mem_ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "passdb", &passdb_methods); } diff --git a/source3/winbindd/idmap_proto.h b/source3/winbindd/idmap_proto.h index 0e25963f209..596c22f6060 100644 --- a/source3/winbindd/idmap_proto.h +++ b/source3/winbindd/idmap_proto.h @@ -40,15 +40,15 @@ struct idmap_domain *idmap_find_domain(const char *domname); /* The following definitions come from winbindd/idmap_nss.c */ -NTSTATUS idmap_nss_init(void); +NTSTATUS idmap_nss_init(TALLOC_CTX *mem_ctx); /* The following definitions come from winbindd/idmap_passdb.c */ -NTSTATUS idmap_passdb_init(void); +NTSTATUS idmap_passdb_init(TALLOC_CTX *mem_ctx); /* The following definitions come from winbindd/idmap_tdb.c */ -NTSTATUS idmap_tdb_init(void); +NTSTATUS idmap_tdb_init(TALLOC_CTX *mem_ctx); /* The following definitions come from winbindd/idmap_util.c */ @@ -64,6 +64,6 @@ struct id_map **id_map_ptrs_init(TALLOC_CTX *mem_ctx, size_t num_ids); /* max number of ids requested per LDAP batch query */ #define IDMAP_LDAP_MAX_IDS 30 -NTSTATUS idmap_ad_nss_init(void); +NTSTATUS idmap_ad_nss_init(TALLOC_CTX *mem_ctx); #endif /* _WINBINDD_IDMAP_PROTO_H_ */ diff --git a/source3/winbindd/idmap_rfc2307.c b/source3/winbindd/idmap_rfc2307.c index ff8bf52ce81..deb25cc70c8 100644 --- a/source3/winbindd/idmap_rfc2307.c +++ b/source3/winbindd/idmap_rfc2307.c @@ -843,7 +843,7 @@ static struct idmap_methods rfc2307_methods = { }; static_decl_idmap; -NTSTATUS idmap_rfc2307_init(void) +NTSTATUS idmap_rfc2307_init(TALLOC_CTX *ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "rfc2307", &rfc2307_methods); diff --git a/source3/winbindd/idmap_rid.c b/source3/winbindd/idmap_rid.c index 8cf1f033391..10088b5a27a 100644 --- a/source3/winbindd/idmap_rid.c +++ b/source3/winbindd/idmap_rid.c @@ -174,7 +174,7 @@ static struct idmap_methods rid_methods = { }; static_decl_idmap; -NTSTATUS idmap_rid_init(void) +NTSTATUS idmap_rid_init(TALLOC_CTX *ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "rid", &rid_methods); } diff --git a/source3/winbindd/idmap_script.c b/source3/winbindd/idmap_script.c index 4faf2d593b6..7b7f8844c36 100644 --- a/source3/winbindd/idmap_script.c +++ b/source3/winbindd/idmap_script.c @@ -628,7 +628,7 @@ static struct idmap_methods db_methods = { }; static_decl_idmap; -NTSTATUS idmap_script_init(void) +NTSTATUS idmap_script_init(TALLOC_CTX *ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "script", &db_methods); } diff --git a/source3/winbindd/idmap_tdb.c b/source3/winbindd/idmap_tdb.c index a04295f3abb..24ef11836e1 100644 --- a/source3/winbindd/idmap_tdb.c +++ b/source3/winbindd/idmap_tdb.c @@ -434,7 +434,7 @@ static struct idmap_methods db_methods = { .allocate_id = idmap_tdb_common_get_new_id, }; -NTSTATUS idmap_tdb_init(void) +NTSTATUS idmap_tdb_init(TALLOC_CTX *mem_ctx) { DEBUG(10, ("calling idmap_tdb_init\n")); diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c index 72c5b9e1ad8..4d423907ae3 100644 --- a/source3/winbindd/idmap_tdb2.c +++ b/source3/winbindd/idmap_tdb2.c @@ -606,7 +606,7 @@ static struct idmap_methods db_methods = { }; static_decl_idmap; -NTSTATUS idmap_tdb2_init(void) +NTSTATUS idmap_tdb2_init(TALLOC_CTX *ctx) { return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "tdb2", &db_methods); } diff --git a/source3/winbindd/nss_info.c b/source3/winbindd/nss_info.c index 2c6bb01aded..9ef7e20b987 100644 --- a/source3/winbindd/nss_info.c +++ b/source3/winbindd/nss_info.c @@ -173,7 +173,7 @@ static NTSTATUS nss_init(const char **nss_list) nss_backend = nss_get_backend("template"); if (nss_backend == NULL) { - static_init_nss_info; + static_init_nss_info(NULL); } /* Create the list of nss_domains (loading any shared plugins diff --git a/source3/winbindd/nss_info_template.c b/source3/winbindd/nss_info_template.c index 53159b6c02e..c58a7fcc8f8 100644 --- a/source3/winbindd/nss_info_template.c +++ b/source3/winbindd/nss_info_template.c @@ -71,7 +71,7 @@ static struct nss_info_methods nss_template_methods = { .close_fn = nss_template_close }; -NTSTATUS nss_info_template_init( void ) +NTSTATUS nss_info_template_init(TALLOC_CTX *mem_ctx) { return smb_register_idmap_nss(SMB_NSS_INFO_INTERFACE_VERSION, "template", |