1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

r9394: avoid to use BOOL in ldb

This commit is contained in:
Simo Sorce 2005-08-18 16:41:27 +00:00 committed by Gerald (Jerry) Carter
parent 796d0ea2fc
commit d2055849fb
2 changed files with 4 additions and 8 deletions

View File

@ -43,14 +43,14 @@
#define LDB_SPECIAL "@SPECIAL"
BOOL ldb_dn_is_special(const struct ldb_dn *dn)
int ldb_dn_is_special(const struct ldb_dn *dn)
{
if (dn == NULL || dn->comp_num != 1) return 0;
return ! strcmp(dn->components[0].name, LDB_SPECIAL);
}
BOOL ldb_dn_check_special(const struct ldb_dn *dn, const char *check)
int ldb_dn_check_special(const struct ldb_dn *dn, const char *check)
{
if (dn == NULL || dn->comp_num != 1) return 0;

View File

@ -349,12 +349,8 @@ int ldb_attrib_add_handlers(struct ldb_context *ldb,
/* The following definitions come from lib/ldb/common/ldb_dn.c */
#ifndef BOOL
typedef int BOOL;
#endif
BOOL ldb_dn_is_special(const struct ldb_dn *dn);
BOOL ldb_dn_check_special(const struct ldb_dn *dn, const char *check);
int ldb_dn_is_special(const struct ldb_dn *dn);
int ldb_dn_check_special(const struct ldb_dn *dn, const char *check);
char *ldb_dn_escape_value(void *mem_ctx, struct ldb_val value);
struct ldb_dn *ldb_dn_new(void *mem_ctx);
struct ldb_dn *ldb_dn_explode(void *mem_ctx, const char *dn);