git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cecad2
)
r17714: fix compiler warnings
author
Stefan Metzmacher
<metze@samba.org>
Tue, 22 Aug 2006 18:51:46 +0000
(18:51 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:16:30 +0000
(14:16 -0500)
metze
(This used to be commit
cea06e105a28e12989cd6fdf6d91d86347b8ffc4
)
source4/lib/ldb/common/ldb_msg.c
patch
|
blob
|
history
diff --git
a/source4/lib/ldb/common/ldb_msg.c
b/source4/lib/ldb/common/ldb_msg.c
index d40dcde010ace2c7c180139eec421d642cd10545..b42c4fe6024c225b8931ae8417758a635f83453b 100644
(file)
--- 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;