From: Julio Sánchez Fernández Date: Wed, 14 Jul 1999 19:51:35 +0000 (+0000) Subject: Get rid of two compilation warnings. One is thought to be properly X-Git-Tag: OPENLDAP_REL_ENG_2_BP~131 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1df71e1814911a456d263f12e214016aae7d5d4b;p=openldap Get rid of two compilation warnings. One is thought to be properly taken care of. The second, however, on remove_old_locks is unclear. --- diff --git a/servers/slapd/back-bdb2/startup.c b/servers/slapd/back-bdb2/startup.c index a1f8bc69ce..a80dee9498 100644 --- a/servers/slapd/back-bdb2/startup.c +++ b/servers/slapd/back-bdb2/startup.c @@ -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;