From eb64d3406c15dcc5cb42c94488737bdbb9a15655 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 14 May 2013 18:55:40 +0200 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. --- src/providers/ad/ad_init.c | 2 +- src/providers/ipa/ipa_init.c | 2 +- src/providers/ldap/ldap_common.h | 2 +- src/providers/ldap/ldap_init.c | 2 +- src/providers/ldap/sdap_child_helpers.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/providers/ad/ad_init.c b/src/providers/ad/ad_init.c index f90df2a6..d5488ad0 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 5192bc81..0a5d6e58 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 86079fa6..2d17b755 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 12b204c8..f70c8f1b 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 c63c3cb7..fd4d10f4 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; -- cgit