summaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-07-19 18:18:29 -0400
committerJakub Hrozek <jhrozek@redhat.com>2012-08-01 22:24:44 +0200
commit7616a65d63d3bd0f669a871fd0ed89185956e9ce (patch)
treea52e2e7840fa381a076b07424f3a465758136139 /src/db
parentc929c213c91b2f9d55f96d6964b9390636178991 (diff)
downloadsssd-7616a65d63d3bd0f669a871fd0ed89185956e9ce.tar.gz
sssd-7616a65d63d3bd0f669a871fd0ed89185956e9ce.tar.bz2
sssd-7616a65d63d3bd0f669a871fd0ed89185956e9ce.zip
Use ldb_msg_add_string with bare strings
Diffstat (limited to 'src/db')
-rw-r--r--src/db/sysdb_subdomains.c16
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;