Author: derrell Date: 2005-06-09 18:43:56 +0000 (Thu, 09 Jun 2005) New Revision: 7449
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=7449 Log: add ctype.h header to dn expand function Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c 2005-06-09 18:22:08 UTC (rev 7448) +++ branches/SAMBA_4_0/source/lib/ldb/common/ldb_explode_dn.c 2005-06-09 18:43:56 UTC (rev 7449) @@ -19,6 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <ctype.h> #include "includes.h" #include "ldb/include/ldb.h" #include "ldb/include/ldb_private.h" Modified: branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c =================================================================== --- branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2005-06-09 18:22:08 UTC (rev 7448) +++ branches/SAMBA_4_0/source/lib/ldb/ldb_sqlite3/ldb_sqlite3.c 2005-06-09 18:43:56 UTC (rev 7449) @@ -143,10 +143,6 @@ const struct ldb_parse_tree *t); static int -new_attr(struct ldb_module * module, - char * pAttrName); - -static int msg_to_sql(struct ldb_module * module, const struct ldb_message * msg, long long eid, @@ -157,7 +153,11 @@ char * pDN, long long * pEID); +static int +new_attr(struct ldb_module * module, + char * pAttrName); + /* * Table of operations for the sqlite3 backend */ @@ -1172,25 +1172,6 @@ } -static int -new_attr(struct ldb_module * module, - char * pAttrName) -{ - struct lsqlite3_private * lsqlite3 = module->private_data; - - /* NOTE: pAttrName is assumed to already be case-folded here! */ - QUERY_NOROWS(lsqlite3, - FALSE, - "CREATE TABLE ldb_attr_%q " - "(" - " eid INTEGER REFERENCES ldb_entry, " - " attr_value TEXT" - ");", - pAttrName); - - return 0; -} - /* * Issue a series of SQL statements to implement the ADD/MODIFY/DELETE * requests in the ldb_message @@ -1301,6 +1282,7 @@ } + static int new_dn(struct ldb_module * module, char * pDN, @@ -1324,3 +1306,22 @@ } +static int +new_attr(struct ldb_module * module, + char * pAttrName) +{ + struct lsqlite3_private * lsqlite3 = module->private_data; + + /* NOTE: pAttrName is assumed to already be case-folded here! */ + QUERY_NOROWS(lsqlite3, + FALSE, + "CREATE TABLE ldb_attr_%q " + "(" + " eid INTEGER REFERENCES ldb_entry, " + " attr_value TEXT" + ");", + pAttrName); + + return 0; +} +
