mirror of
https://github.com/samba-team/samba.git
synced 2025-11-07 12:23:51 +03:00
r25548: Convert to standard bool type.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
97a241692c
commit
190d73b44b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user