mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
silence warnings; fix messages
This commit is contained in:
parent
256f5bbe57
commit
498d1f043d
@ -45,6 +45,7 @@ static int bdb_cache_delete_entry_internal(Cache *cache, Entry *e);
|
||||
static void bdb_lru_print(Cache *cache);
|
||||
#endif
|
||||
|
||||
#if 0 /* unused */
|
||||
static int
|
||||
bdb_cache_entry_rdwr_lock(Entry *e, int rw)
|
||||
{
|
||||
@ -98,6 +99,7 @@ bdb_cache_entry_rdwr_unlock(Entry *e, int rw)
|
||||
else
|
||||
return ldap_pvt_thread_rdwr_runlock(&BEI(e)->bei_rdwr);
|
||||
}
|
||||
#endif /* unused */
|
||||
|
||||
static int
|
||||
bdb_cache_entry_rdwr_init(Entry *e)
|
||||
|
@ -126,7 +126,7 @@ bdb_db_config(
|
||||
if( rc != LDAP_SUCCESS ) return 1;
|
||||
|
||||
/* size of the cache in entries */
|
||||
} else if ( strcasecmp( argv[0], "cachesize" ) == 0 ) {
|
||||
} else if ( strcasecmp( argv[0], "cachesize" ) == 0 ) {
|
||||
if ( argc < 2 ) {
|
||||
fprintf( stderr,
|
||||
"%s: line %d: missing size in \"cachesize <size>\" line\n",
|
||||
|
@ -185,6 +185,7 @@ int bdb_idl_insert( ID *ids, ID id )
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0 /* unused */
|
||||
static int idl_delete( ID *ids, ID id )
|
||||
{
|
||||
unsigned x = bdb_idl_search( ids, id );
|
||||
@ -228,6 +229,7 @@ static int idl_delete( ID *ids, ID id )
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* unused */
|
||||
|
||||
static char *
|
||||
bdb_show_key(
|
||||
|
@ -37,13 +37,13 @@ struct berval bdb_uuid = { 0, NULL };
|
||||
typedef void * db_malloc(size_t);
|
||||
typedef void * db_realloc(void *, size_t);
|
||||
|
||||
#if 0
|
||||
static int
|
||||
bdb_open( BackendInfo *bi )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static int
|
||||
bdb_destroy( BackendInfo *bi )
|
||||
{
|
||||
@ -516,7 +516,7 @@ bdb_initialize(
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( BACK_BDB, ENTRY, "bdb_db_initialize\n", 0, 0, 0 );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_TRACE, "bdb_open: initialize BDB backend\n",
|
||||
Debug( LDAP_DEBUG_TRACE, "bdb_initialize: initialize BDB backend\n",
|
||||
0, 0, 0 );
|
||||
#endif
|
||||
|
||||
@ -545,7 +545,7 @@ bdb_initialize(
|
||||
"\texpected: %s \tgot: %s\n", DB_VERSION_STRING, version, 0 );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"bdb_open: version mismatch\n"
|
||||
"bdb_initialize: version mismatch\n"
|
||||
"\texpected: " DB_VERSION_STRING "\n"
|
||||
"\tgot: %s \n", version, 0, 0 );
|
||||
#endif
|
||||
@ -553,9 +553,9 @@ bdb_initialize(
|
||||
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( BACK_BDB, DETAIL1,
|
||||
"bdb_db_initialize: bdb_open: %s\n", version, 0, 0 );
|
||||
"bdb_db_initialize: %s\n", version, 0, 0 );
|
||||
#else
|
||||
Debug( LDAP_DEBUG_ANY, "bdb_open: %s\n",
|
||||
Debug( LDAP_DEBUG_ANY, "bdb_initialize: %s\n",
|
||||
version, 0, 0 );
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user