From: Pierangelo Masarati Date: Sun, 10 Nov 2002 20:00:44 +0000 (+0000) Subject: silence warnings; fix messages X-Git-Tag: NO_SLAP_OP_BLOCKS~806 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=498d1f043d50c683149ec19594156492ebc64d4e;p=openldap silence warnings; fix messages --- diff --git a/servers/slapd/back-bdb/cache.c b/servers/slapd/back-bdb/cache.c index a2e43e0db9..ab0cec701c 100644 --- a/servers/slapd/back-bdb/cache.c +++ b/servers/slapd/back-bdb/cache.c @@ -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) diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index f5aee6dedb..90f99672f3 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -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 \" line\n", diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index ecc856cb0e..e450a7c9c7 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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( diff --git a/servers/slapd/back-bdb/init.c b/servers/slapd/back-bdb/init.c index e8646d3896..ccfc59edb9 100644 --- a/servers/slapd/back-bdb/init.c +++ b/servers/slapd/back-bdb/init.c @@ -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 }