r7449: add ctype.h header to dn expand function
authorDerrell Lipman <derrell@samba.org>
Thu, 9 Jun 2005 18:43:56 +0000 (18:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:17:54 +0000 (13:17 -0500)
(This used to be commit 0e3b872560d82e1a0f7b58fe7d210563d6d29daf)

source4/lib/ldb/common/ldb_explode_dn.c
source4/lib/ldb/ldb_sqlite3/ldb_sqlite3.c

index e3cd53d047d501921157d1747f38565c39b21897..f015ce81c7d66d24786c90ec45c010dba3b8002c 100644 (file)
@@ -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"
index c16708672d4842e0d84dbe52acc86685777a665c..e491fba6e08b2f908025fee34e56d2986723b92e 100644 (file)
@@ -142,10 +142,6 @@ parsetree_to_tablelist(struct ldb_module *module,
                        char * hTalloc,
                        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,
@@ -157,6 +153,10 @@ new_dn(struct ldb_module * module,
        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 @@ parsetree_to_tablelist(struct ldb_module *module,
 }
 
 
-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 @@ msg_to_sql(struct ldb_module * module,
 }
 
 
+
 static int
 new_dn(struct ldb_module * module,
        char * pDN,
@@ -1324,3 +1306,22 @@ new_dn(struct ldb_module * module,
 }
 
 
+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;
+}
+