From eb64d3406c15dcc5cb42c94488737bdbb9a15655 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: May 20 2013 20:37:25 +0000 Subject: Remove unneeded parameter of setup_child and namespace it setup_child() was accepting a parameter it didn't use. Also the function name was too generic, so I added a sdap prefix. --- diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index f90df2a..d5488ad 100644 --- a/src/providers/ad/ad_init.c +++ b/src/providers/ad/ad_init.c @@ -178,7 +178,7 @@ sssm_ad_id_init(struct be_ctx *bectx, goto done; } - ret = setup_child(sdap_ctx); + ret = sdap_setup_child(); if (ret != EOK) { DEBUG(SSSDBG_FATAL_FAILURE, ("setup_child failed [%d][%s].\n", diff --git a/src/providers/ipa/ipa_init.c b/src/providers/ipa/ipa_init.c index 5192bc8..0a5d6e5 100644 --- a/src/providers/ipa/ipa_init.c +++ b/src/providers/ipa/ipa_init.c @@ -197,7 +197,7 @@ int sssm_ipa_id_init(struct be_ctx *bectx, goto done; } - ret = setup_child(sdap_ctx); + ret = sdap_setup_child(); if (ret != EOK) { DEBUG(1, ("setup_child failed [%d][%s].\n", ret, strerror(ret))); diff --git a/src/providers/ldap/ldap_common.h b/src/providers/ldap/ldap_common.h index 86079fa..2d17b75 100644 --- a/src/providers/ldap/ldap_common.h +++ b/src/providers/ldap/ldap_common.h @@ -186,7 +186,7 @@ errno_t services_get_recv(struct tevent_req *req, int *dp_error_out); /* setup child logging */ -int setup_child(struct sdap_id_ctx *ctx); +int sdap_setup_child(void); errno_t string_to_shadowpw_days(const char *s, long *d); diff --git a/src/providers/ldap/ldap_init.c b/src/providers/ldap/ldap_init.c index 12b204c..f70c8f1 100644 --- a/src/providers/ldap/ldap_init.c +++ b/src/providers/ldap/ldap_init.c @@ -164,7 +164,7 @@ int sssm_ldap_id_init(struct be_ctx *bectx, goto done; } - ret = setup_child(ctx); + ret = sdap_setup_child(); if (ret != EOK) { DEBUG(1, ("setup_child failed [%d][%s].\n", ret, strerror(ret))); diff --git a/src/providers/ldap/sdap_child_helpers.c b/src/providers/ldap/sdap_child_helpers.c index c63c3cb..fd4d10f 100644 --- a/src/providers/ldap/sdap_child_helpers.c +++ b/src/providers/ldap/sdap_child_helpers.c @@ -450,7 +450,7 @@ static errno_t set_tgt_child_timeout(struct tevent_req *req, /* Setup child logging */ -int setup_child(struct sdap_id_ctx *ctx) +int sdap_setup_child(void) { int ret; FILE *debug_filep;