diff options
author | Simo Sorce <simo@redhat.com> | 2012-07-19 19:00:27 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-01 22:24:44 +0200 |
commit | 067bfcaad9baae2d962528839fde30ebd1a5ba2b (patch) | |
tree | f116073e8950d6911cc8b3fa6519c468751452b4 | |
parent | 21f19d573047e70ee8ec0119ec00c1ed1af9ec04 (diff) | |
download | sssd-067bfcaad9baae2d962528839fde30ebd1a5ba2b.tar.gz sssd-067bfcaad9baae2d962528839fde30ebd1a5ba2b.tar.bz2 sssd-067bfcaad9baae2d962528839fde30ebd1a5ba2b.zip |
Use a more tractable name for subdomain request
I am all for readable names, but there is a tradeof between expressing purpose
and compactness.
-rw-r--r-- | src/providers/data_provider_be.c | 4 | ||||
-rw-r--r-- | src/providers/dp_backend.h | 2 | ||||
-rw-r--r-- | src/providers/ipa/ipa_subdomains.c | 12 |
3 files changed, 8 insertions, 10 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index 9571d095..ba43d7d4 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -344,7 +344,7 @@ static void get_subdomains_callback(struct be_req *req, static int be_get_subdomains(DBusMessage *message, struct sbus_connection *conn) { - struct be_get_subdomains_req *req; + struct be_subdom_req *req; struct be_req *be_req = NULL; struct be_client *becli; DBusMessage *reply; @@ -405,7 +405,7 @@ static int be_get_subdomains(DBusMessage *message, struct sbus_connection *conn) be_req->fn = get_subdomains_callback; be_req->pvt = reply; - req = talloc(be_req, struct be_get_subdomains_req); + req = talloc(be_req, struct be_subdom_req); if (!req) { err_maj = DP_ERR_FATAL; err_min = ENOMEM; diff --git a/src/providers/dp_backend.h b/src/providers/dp_backend.h index 131cd6ea..6c9b0c0e 100644 --- a/src/providers/dp_backend.h +++ b/src/providers/dp_backend.h @@ -171,7 +171,7 @@ struct be_autofs_req { char *mapname; }; -struct be_get_subdomains_req { +struct be_subdom_req { bool force; char *domain_hint; struct sysdb_subdom **domain_list; diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index 11fba6b9..e842e24b 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -151,10 +151,9 @@ done: return ret; } -static errno_t ipa_subdomains_parse_results( - struct be_get_subdomains_req *sd_data, - size_t count, - struct sysdb_attrs **reply) +static errno_t ipa_subdomains_parse_results(struct be_subdom_req *sd_data, + size_t count, + struct sysdb_attrs **reply) { struct sysdb_subdom **new_domain_list = NULL; const char *value; @@ -234,7 +233,7 @@ struct ipa_subdomains_req_ctx { struct be_req *be_req; struct ipa_subdomains_ctx *sd_ctx; struct sdap_id_op *sdap_op; - struct be_get_subdomains_req *sd_data; + struct be_subdom_req *sd_data; char *current_filter; @@ -287,8 +286,7 @@ void ipa_subdomains_handler(struct be_req *be_req) ctx->sd_ctx = talloc_get_type( be_req->be_ctx->bet_info[BET_SUBDOMAINS].pvt_bet_data, struct ipa_subdomains_ctx); - ctx->sd_data = talloc_get_type(be_req->req_data, - struct be_get_subdomains_req); + ctx->sd_data = talloc_get_type(be_req->req_data, struct be_subdom_req); ctx->search_base_iter = 0; ctx->search_bases = ctx->sd_ctx->search_bases; |