]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-bdb/error.c
Fix prev cache.c commit
[openldap] / servers / slapd / back-bdb / error.c
index d324ec5f4672eb60652a583bd1dabe157cc3f646..9d6d04da92709063d7bd1c21720f4f9418f33f08 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2000-2004 The OpenLDAP Foundation.
+ * Copyright 2000-2008 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -25,7 +25,7 @@
 #if DB_VERSION_FULL < 0x04030000
 void bdb_errcall( const char *pfx, char * msg )
 #else
-void bdb_errcall( DB_ENV *env, const char *pfx, const char * msg )
+void bdb_errcall( const DB_ENV *env, const char *pfx, const char * msg )
 #endif
 {
 #ifdef HAVE_EBCDIC
@@ -35,6 +35,17 @@ void bdb_errcall( DB_ENV *env, const char *pfx, const char * msg )
        Debug( LDAP_DEBUG_ANY, "bdb(%s): %s\n", pfx, msg, 0 );
 }
 
+#if DB_VERSION_FULL >= 0x04030000
+void bdb_msgcall( const DB_ENV *env, const char *msg )
+{
+#ifdef HAVE_EBCDIC
+       if ( msg[0] > 0x7f )
+               __etoa( msg );
+#endif
+       Debug( LDAP_DEBUG_TRACE, "bdb: %s\n", msg, 0, 0 );
+}
+#endif
+
 #ifdef HAVE_EBCDIC
 
 #undef db_strerror