diff options
author | Simo Sorce <idra@samba.org> | 2005-08-18 16:41:27 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2005-08-18 16:41:27 +0000 |
commit | 3898cebb953885536aefca9d9f218abbd29614ff (patch) | |
tree | 6dd05c802298fc5137bece04699175f2fcf99d49 /source | |
parent | 00e7576dd5903a8af1c17e0b761ff503168f994e (diff) | |
download | samba-3898cebb953885536aefca9d9f218abbd29614ff.tar.gz samba-3898cebb953885536aefca9d9f218abbd29614ff.tar.xz samba-3898cebb953885536aefca9d9f218abbd29614ff.zip |
r9394: avoid to use BOOL in ldb
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/ldb/common/ldb_dn.c | 4 | ||||
-rw-r--r-- | source/lib/ldb/include/ldb.h | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/source/lib/ldb/common/ldb_dn.c b/source/lib/ldb/common/ldb_dn.c index 12078231b81..20cef9dd81c 100644 --- a/source/lib/ldb/common/ldb_dn.c +++ b/source/lib/ldb/common/ldb_dn.c @@ -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; diff --git a/source/lib/ldb/include/ldb.h b/source/lib/ldb/include/ldb.h index fc447102d6e..89e88fd4e97 100644 --- a/source/lib/ldb/include/ldb.h +++ b/source/lib/ldb/include/ldb.h @@ -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); |