summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-04-24 11:15:04 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-03 11:46:18 -0400
commitd226a2a0f8e6738507874f3e04bf281c2bf526b1 (patch)
tree12e4fa8a3a20c42981b43df9513e9ff1c62cbacc
parente927bf39fc8e01ee5bec7734b50c2b2e76c6330b (diff)
downloadsssd-d226a2a0f8e6738507874f3e04bf281c2bf526b1.tar.gz
sssd-d226a2a0f8e6738507874f3e04bf281c2bf526b1.tar.bz2
sssd-d226a2a0f8e6738507874f3e04bf281c2bf526b1.zip
Rename split_service_name_filter
The function was used outside services code which was confusing due to its name. This patch renames it to sound more netrual.
-rw-r--r--src/providers/data_provider_be.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index b9234d57..a343b107 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -516,10 +516,10 @@ static void acctinfo_callback(struct be_req *req,
}
static errno_t
-split_service_name_filter(TALLOC_CTX *mem_ctx,
- const char *filter,
- char **name,
- char **protocol)
+split_name_extended(TALLOC_CTX *mem_ctx,
+ const char *filter,
+ char **name,
+ char **extended)
{
char *p;
@@ -530,12 +530,12 @@ split_service_name_filter(TALLOC_CTX *mem_ctx,
p = strchr(*name, ':');
if (p) {
- /* Protocol included */
+ /* Extended info included */
*p = '\0';
- *protocol = p + 1;
+ *extended = p + 1;
} else {
- *protocol = NULL;
+ *extended = NULL;
}
return EOK;
@@ -660,14 +660,14 @@ static int be_get_account_info(DBusMessage *message, struct sbus_connection *con
ret = EOK;
if (strncmp(filter, "name=", 5) == 0) {
req->filter_type = BE_FILTER_NAME;
- ret = split_service_name_filter(req, &filter[5],
- &req->filter_value,
- &req->extra_value);
+ ret = split_name_extended(req, &filter[5],
+ &req->filter_value,
+ &req->extra_value);
} else if (strncmp(filter, "idnumber=", 9) == 0) {
req->filter_type = BE_FILTER_IDNUM;
- ret = split_service_name_filter(req, &filter[9],
- &req->filter_value,
- &req->extra_value);
+ ret = split_name_extended(req, &filter[9],
+ &req->filter_value,
+ &req->extra_value);
} else if (strcmp(filter, ENUM_INDICATOR) == 0) {
req->filter_type = BE_FILTER_ENUM;
req->filter_value = NULL;
@@ -1445,9 +1445,9 @@ static int be_host_handler(DBusMessage *message, struct sbus_connection *conn)
if (filter) {
if (strncmp(filter, "name=", 5) == 0) {
req->filter_type = BE_FILTER_NAME;
- ret = split_service_name_filter(req, &filter[5],
- &req->filter_value,
- &req->extra_value);
+ ret = split_name_extended(req, &filter[5],
+ &req->filter_value,
+ &req->extra_value);
} else {
err_maj = DP_ERR_FATAL;
err_min = EINVAL;