From 02515a76137e271d5a42c683bcda6c5a5db3a0db Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 22 Aug 2006 18:51:46 +0000 Subject: r17714: fix compiler warnings metze (This used to be commit cea06e105a28e12989cd6fdf6d91d86347b8ffc4) --- source4/lib/ldb/common/ldb_msg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib') 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; -- cgit