void *
ldbm_malloc( size_t size )
{
- return( calloc( 1, size ));
+ /* likely should use ber_mem* routines */
+ return( calloc( 1, size ) );
}
#ifdef LDAP_SYSLOG
}
ret->set_pagesize( ret, DEFAULT_DB_PAGE_SIZE );
+
+ /* likely should use ber_mem* routines */
+#if DB_VERSION_MINOR >= 3
+ ret->set_alloc( ret, ldbm_malloc, NULL, NULL );
+#else
ret->set_malloc( ret, ldbm_malloc );
+#endif
+
/* ret->set_cachesize( ret, 0, dbcachesize, 0 ); */
err = ret->open( ret, name, NULL, DB_TYPE, rw, mode);