summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-06 21:42:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:53 -0500
commit2f1c0eca139371ffa1685f6cb584f1cd3fb302c0 (patch)
tree2d56b25cb1754b7f2be0680bac28dab5a7d5480b /source4/lib
parentd5a93dfcb950ecd52d8dea7a2a5d667feb6259ca (diff)
downloadsamba-2f1c0eca139371ffa1685f6cb584f1cd3fb302c0.tar.gz
samba-2f1c0eca139371ffa1685f6cb584f1cd3fb302c0.tar.bz2
samba-2f1c0eca139371ffa1685f6cb584f1cd3fb302c0.zip
r25548: Convert to standard bool type.
(This used to be commit 190d73b44b9b9c6dabbd26212d596d985b25edab)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/ldb-samba/ldif_handlers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/lib/ldb-samba/ldif_handlers.c b/source4/lib/ldb-samba/ldif_handlers.c
index 0609694c4b..928a06ab43 100644
--- a/source4/lib/ldb-samba/ldif_handlers.c
+++ b/source4/lib/ldb-samba/ldif_handlers.c
@@ -81,10 +81,10 @@ static int ldif_write_objectSid(struct ldb_context *ldb, void *mem_ctx,
static bool ldb_comparision_objectSid_isString(const struct ldb_val *v)
{
if (v->length < 3) {
- return False;
+ return false;
}
- if (strncmp("S-", (const char *)v->data, 2) != 0) return False;
+ if (strncmp("S-", (const char *)v->data, 2) != 0) return false;
return true;
}
@@ -181,14 +181,14 @@ static bool ldb_comparision_objectGUID_isString(const struct ldb_val *v)
struct GUID guid;
NTSTATUS status;
- if (v->length < 33) return False;
+ if (v->length < 33) return false;
/* see if the input if null-terninated (safety check for the below) */
- if (v->data[v->length] != '\0') return False;
+ if (v->data[v->length] != '\0') return false;
status = GUID_from_string((const char *)v->data, &guid);
if (!NT_STATUS_IS_OK(status)) {
- return False;
+ return false;
}
return true;