summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2014-07-21 13:12:07 +0100
committerJakub Hrozek <jhrozek@redhat.com>2014-07-22 09:40:11 +0200
commitb011330c77168cdd864aaae54a75214935136c05 (patch)
tree51e50f4cb51ba05815be236952529e14312d1dd3 /src/util
parentdb18dda869bc6c52a41797b2066cf121cf10f49c (diff)
downloadsssd-b011330c77168cdd864aaae54a75214935136c05.tar.gz
sssd-b011330c77168cdd864aaae54a75214935136c05.tar.xz
sssd-b011330c77168cdd864aaae54a75214935136c05.zip
UTIL: rename find_subdomain_by_object_name
The function was named "find_subdomain" yet it could find both main domain and subdomain. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/domain_info_utils.c4
-rw-r--r--src/util/util.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/util/domain_info_utils.c b/src/util/domain_info_utils.c
index b449591a5..2d29743c9 100644
--- a/src/util/domain_info_utils.c
+++ b/src/util/domain_info_utils.c
@@ -168,8 +168,8 @@ sss_get_domain_by_sid_ldap_fallback(struct sss_domain_info *domain,
}
struct sss_domain_info *
-find_subdomain_by_object_name(struct sss_domain_info *domain,
- const char *object_name)
+find_domain_by_object_name(struct sss_domain_info *domain,
+ const char *object_name)
{
TALLOC_CTX *tmp_ctx;
struct sss_domain_info *dom = NULL;
diff --git a/src/util/util.h b/src/util/util.h
index ee84735c5..cc1a38283 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -522,8 +522,8 @@ sss_get_domain_by_sid_ldap_fallback(struct sss_domain_info *domain,
const char* sid);
struct sss_domain_info *
-find_subdomain_by_object_name(struct sss_domain_info *domain,
- const char *object_name);
+find_domain_by_object_name(struct sss_domain_info *domain,
+ const char *object_name);
bool subdomain_enumerates(struct sss_domain_info *parent,
const char *sd_name);