Fix C errors

This commit is contained in:
Kurt Zeilenga 2007-02-15 01:41:56 +00:00
parent a9aeb858fe
commit 5953a397fc
2 changed files with 7 additions and 6 deletions

View File

@ -621,9 +621,9 @@ glue_entry_get_rw (
int rw,
Entry **e )
{
int rc;
BackendDB *b0 = op->o_bd;
op->o_bd = glue_back_select( b0, dn );
int rc;
if ( op->o_bd->be_fetch ) {
rc = op->o_bd->be_fetch( op, dn, oc, ad, rw, e );

View File

@ -1177,18 +1177,19 @@ static const rewrite_mapper slapd_mapper = {
int slap_sasl_init( void )
{
#ifdef ENABLE_REWRITE
rewrite_mapper_register( &slapd_mapper );
#endif
#ifdef HAVE_CYRUS_SASL
int rc;
static sasl_callback_t server_callbacks[] = {
{ SASL_CB_LOG, &slap_sasl_log, NULL },
{ SASL_CB_LIST_END, NULL, NULL }
};
#endif
#ifdef ENABLE_REWRITE
rewrite_mapper_register( &slapd_mapper );
#endif
#ifdef HAVE_CYRUS_SASL
#ifdef HAVE_SASL_VERSION
/* stringify the version number, sasl.h doesn't do it for us */
#define VSTR0(maj, min, pat) #maj "." #min "." #pat