diff options
author | Simo Sorce <simo@redhat.com> | 2012-07-19 18:18:29 -0400 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-01 22:24:44 +0200 |
commit | 7616a65d63d3bd0f669a871fd0ed89185956e9ce (patch) | |
tree | a52e2e7840fa381a076b07424f3a465758136139 /src | |
parent | c929c213c91b2f9d55f96d6964b9390636178991 (diff) | |
download | sssd-7616a65d63d3bd0f669a871fd0ed89185956e9ce.tar.gz sssd-7616a65d63d3bd0f669a871fd0ed89185956e9ce.tar.bz2 sssd-7616a65d63d3bd0f669a871fd0ed89185956e9ce.zip |
Use ldb_msg_add_string with bare strings
Diffstat (limited to 'src')
-rw-r--r-- | src/db/sysdb_subdomains.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/db/sysdb_subdomains.c b/src/db/sysdb_subdomains.c index 46e03497..f5c16ac7 100644 --- a/src/db/sysdb_subdomains.c +++ b/src/db/sysdb_subdomains.c @@ -229,8 +229,8 @@ errno_t sysdb_master_domain_add_info(struct sysdb_ctx *sysdb, goto done; } - ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_FLAT, "%s", - domain_info->flat_name); + ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_FLAT, + domain_info->flat_name); if (ret != LDB_SUCCESS) { ret = sysdb_error_to_errno(ret); goto done; @@ -249,8 +249,7 @@ errno_t sysdb_master_domain_add_info(struct sysdb_ctx *sysdb, goto done; } - ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_ID, "%s", - domain_info->id); + ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_ID, domain_info->id); if (ret != LDB_SUCCESS) { ret = sysdb_error_to_errno(ret); goto done; @@ -312,7 +311,7 @@ static errno_t sysdb_add_subdomain_attributes(struct sysdb_ctx *sysdb, goto done; } - ret = ldb_msg_add_fmt(msg, SYSDB_OBJECTCLASS, "%s", SYSDB_SUBDOMAIN_CLASS); + ret = ldb_msg_add_string(msg, SYSDB_OBJECTCLASS, SYSDB_SUBDOMAIN_CLASS); if (ret != LDB_SUCCESS) { ret = sysdb_error_to_errno(ret); goto done; @@ -326,8 +325,8 @@ static errno_t sysdb_add_subdomain_attributes(struct sysdb_ctx *sysdb, goto done; } - ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_FLAT, "%s", - domain_info->flat_name); + ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_FLAT, + domain_info->flat_name); if (ret != LDB_SUCCESS) { ret = sysdb_error_to_errno(ret); goto done; @@ -342,8 +341,7 @@ static errno_t sysdb_add_subdomain_attributes(struct sysdb_ctx *sysdb, goto done; } - ret = ldb_msg_add_fmt(msg, SYSDB_SUBDOMAIN_ID, "%s", - domain_info->id); + ret = ldb_msg_add_string(msg, SYSDB_SUBDOMAIN_ID, domain_info->id); if (ret != LDB_SUCCESS) { ret = sysdb_error_to_errno(ret); goto done; |