summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/common/ldb_msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/ldb/common/ldb_msg.c b/source4/lib/ldb/common/ldb_msg.c
index d40dcde010..b42c4fe602 100644
--- a/source4/lib/ldb/common/ldb_msg.c
+++ b/source4/lib/ldb/common/ldb_msg.c
@@ -374,10 +374,10 @@ int ldb_msg_find_attr_as_bool(const struct ldb_message *msg,
if (!v || !v->data) {
return default_value;
}
- if (strcasecmp(v->data, "FALSE") == 0) {
+ if (strcasecmp((const char *)v->data, "FALSE") == 0) {
return 0;
}
- if (strcasecmp(v->data, "TRUE") == 0) {
+ if (strcasecmp((const char *)v->data, "TRUE") == 0) {
return 1;
}
return default_value;