summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-05-14 18:55:40 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-20 22:37:25 +0200
commiteb64d3406c15dcc5cb42c94488737bdbb9a15655 (patch)
tree9c7b7ed3d21f1dd8ce19daff050e8d1aceef7c11
parent7486dea9f5f7b2a6fbbacc6db740a82140b6377c (diff)
downloadsssd-eb64d3406c15dcc5cb42c94488737bdbb9a15655.tar.gz
sssd-eb64d3406c15dcc5cb42c94488737bdbb9a15655.tar.bz2
sssd-eb64d3406c15dcc5cb42c94488737bdbb9a15655.zip
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.
-rw-r--r--src/providers/ad/ad_init.c2
-rw-r--r--src/providers/ipa/ipa_init.c2
-rw-r--r--src/providers/ldap/ldap_common.h2
-rw-r--r--src/providers/ldap/ldap_init.c2
-rw-r--r--src/providers/ldap/sdap_child_helpers.c2
5 files changed, 5 insertions, 5 deletions
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;