Commit 7e5cea4a authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Unwrap ldbm_datum_init()

parent 6abe61b0
......@@ -23,12 +23,7 @@ id2children_add(
IDList *idl;
char buf[20];
#ifdef HAVE_BERKELEY_DB2
Datum data;
ldbm_datum_init( key );
ldbm_datum_init( data );
#endif
Debug( LDAP_DEBUG_TRACE, "=> id2children_add( %lu, %lu )\n",
p ? p->e_id : 0, e->e_id, 0 );
......
......@@ -56,12 +56,7 @@ idl_fetch_one(
Datum data;
IDList *idl;
#ifdef HAVE_BERKELEY_DB2
Datum k2;
ldbm_datum_init( data );
ldbm_datum_init( k2 );
#endif
/* Debug( LDAP_DEBUG_TRACE, "=> idl_fetch_one\n", 0, 0, 0 ); */
......
......@@ -28,11 +28,11 @@ main( int argc, char **argv )
#ifdef HAVE_BERKELEY_DB2
DBC *cursorp;
#endif
ldbm_datum_init( key );
ldbm_datum_init( last );
ldbm_datum_init( data );
#endif
if ( argc < 2 || argc > 3 || ( argc == 3 && strcmp( argv[1], "-n" )
!= 0 )) {
......
......@@ -70,12 +70,12 @@ main( int argc, char **argv )
#ifdef HAVE_BERKELEY_DB2
DBC *cursorp;
#endif
ldbm_datum_init( savekey );
ldbm_datum_init( key );
ldbm_datum_init( data );
ldbm_datum_init( last );
#endif
tailorfile = SLAPD_DEFAULT_CONFIGFILE;
while ( (i = getopt( argc, argv, "d:f:" )) != EOF ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment