summaryrefslogtreecommitdiffstats
path: root/src/db/sysdb.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-08-03 15:28:32 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-06 18:14:00 +0200
commitd3d297c62e0340151da1d4ce1e082dcfcb45b431 (patch)
treeeaad8c7377b8fa9bf80b9b7b874d30ca8b3529a4 /src/db/sysdb.c
parentb1a8ecc98c0f588f86b98d9c0c5751225ce9aaa9 (diff)
downloadsssd-d3d297c62e0340151da1d4ce1e082dcfcb45b431.tar.gz
sssd-d3d297c62e0340151da1d4ce1e082dcfcb45b431.tar.xz
sssd-d3d297c62e0340151da1d4ce1e082dcfcb45b431.zip
SYSDB: Use ldb_msg_add_string for simple string additions
Diffstat (limited to 'src/db/sysdb.c')
-rw-r--r--src/db/sysdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/db/sysdb.c b/src/db/sysdb.c
index 3ef8444cd..2790d28fe 100644
--- a/src/db/sysdb.c
+++ b/src/db/sysdb.c
@@ -827,7 +827,7 @@ errno_t sysdb_domain_create(struct sysdb_ctx *sysdb, const char *domain_name)
ret = ENOMEM;
goto done;
}
- ret = ldb_msg_add_fmt(msg, "cn", "%s", domain_name);
+ ret = ldb_msg_add_string(msg, "cn", domain_name);
if (ret != LDB_SUCCESS) {
ret = EIO;
goto done;
@@ -857,7 +857,7 @@ errno_t sysdb_domain_create(struct sysdb_ctx *sysdb, const char *domain_name)
ret = ENOMEM;
goto done;
}
- ret = ldb_msg_add_fmt(msg, "cn", "Users");
+ ret = ldb_msg_add_string(msg, "cn", "Users");
if (ret != LDB_SUCCESS) {
ret = EIO;
goto done;
@@ -887,7 +887,7 @@ errno_t sysdb_domain_create(struct sysdb_ctx *sysdb, const char *domain_name)
ret = ENOMEM;
goto done;
}
- ret = ldb_msg_add_fmt(msg, "cn", "Groups");
+ ret = ldb_msg_add_string(msg, "cn", "Groups");
if (ret != LDB_SUCCESS) {
ret = EIO;
goto done;
@@ -1549,7 +1549,7 @@ errno_t sysdb_set_bool(struct sysdb_ctx *sysdb,
}
}
- lret = ldb_msg_add_fmt(msg, attr_name, "%s", value ? "TRUE" : "FALSE");
+ lret = ldb_msg_add_string(msg, attr_name, value ? "TRUE" : "FALSE");
if (lret != LDB_SUCCESS) {
ret = sysdb_error_to_errno(lret);
goto done;