]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb2/idl.c
Factor out ldif2* intialization to ldif2common.c
[openldap] / servers / slapd / back-bdb2 / idl.c
index d82078b3f77efc7bae2a6c77d851c4bbe02f41d2..49521a318baa2b30f037ec4d5d3d93a0b0bfab35 100644 (file)
@@ -7,7 +7,7 @@
 #include <ac/string.h>
 #include <ac/socket.h>
 
-#include "ldapconfig.h"
+#include "ldap_defaults.h"
 #include "slap.h"
 #include "back-bdb2.h"
 
@@ -15,7 +15,7 @@ static ID_BLOCK* idl_dup( ID_BLOCK *idl );
 
 /* Allocate an ID_BLOCK with room for nids ids */
 ID_BLOCK *
-bdb2i_idl_alloc( int nids )
+bdb2i_idl_alloc( unsigned int nids )
 {
        ID_BLOCK        *new;
 
@@ -292,7 +292,7 @@ idl_change_first(
        /* delete old key block */
        if ( (rc = bdb2i_cache_delete( db, bkey )) != 0 ) {
                Debug( LDAP_DEBUG_ANY,
-                   "ldbm_delete of (%s) returns %d\n", bkey.dptr, rc,
+                   "bdb2i_db_delete of (%s) returns %d\n", bkey.dptr, rc,
                    0 );
                return( rc );
        }
@@ -615,7 +615,7 @@ bdb2i_idl_insert_key(
  *             3       id not inserted, block must be split
  */
 int
-bdb2i_idl_insert( ID_BLOCK **idl, ID id, int maxids )
+bdb2i_idl_insert( ID_BLOCK **idl, ID id, unsigned int maxids )
 {
        unsigned int    i, j;