svn commit: samba r9394 - in branches/SAMBA_4_0/source/lib/ldb: common include

idra at samba.org idra at samba.org
Thu Aug 18 16:41:28 GMT 2005


Author: idra
Date: 2005-08-18 16:41:27 +0000 (Thu, 18 Aug 2005)
New Revision: 9394

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9394

Log:

avoid to use BOOL in ldb


Modified:
   branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
   branches/SAMBA_4_0/source/lib/ldb/include/ldb.h


Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2005-08-18 16:27:09 UTC (rev 9393)
+++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_dn.c	2005-08-18 16:41:27 UTC (rev 9394)
@@ -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;
 

Modified: branches/SAMBA_4_0/source/lib/ldb/include/ldb.h
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/include/ldb.h	2005-08-18 16:27:09 UTC (rev 9393)
+++ branches/SAMBA_4_0/source/lib/ldb/include/ldb.h	2005-08-18 16:41:27 UTC (rev 9394)
@@ -349,12 +349,8 @@
 
 /* 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);



More information about the samba-cvs mailing list