]> git.sur5r.net Git - openldap/commitdiff
Get rid of two compilation warnings. One is thought to be properly
authorJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 14 Jul 1999 19:51:35 +0000 (19:51 +0000)
committerJulio Sánchez Fernández <jsanchez@openldap.org>
Wed, 14 Jul 1999 19:51:35 +0000 (19:51 +0000)
taken care of.  The second, however, on remove_old_locks is unclear.

servers/slapd/back-bdb2/startup.c

index a1f8bc69ce007e97d6d977c33655c00931b47c63..a80dee94980a74079097f15226ce25c361fbc025 100644 (file)
@@ -22,7 +22,7 @@ static void remove_old_locks( char *home );
 
 
 static void
-bdb2i_db_errcall( char *prefix, char *message )
+bdb2i_db_errcall( const char *prefix, char *message )
 {
        Debug( LDAP_DEBUG_ANY, "bdb2_db_errcall(): %s %s", prefix, message, 0 );
 }
@@ -234,7 +234,7 @@ remove_old_locks( char *home )
        int     err;
 
        memset( &dbEnv, 0, sizeof( DB_ENV ));
-       dbEnv.db_errcall = stderr;
+       dbEnv.db_errcall = bdb2i_db_errcall;
        dbEnv.db_errpfx  = "remove_old_locks(): db_appinit:";
        dbEnv.lk_max     = 0;