silence warnings

This commit is contained in:
Pierangelo Masarati 2002-08-16 16:33:22 +00:00
parent a7349c100e
commit 3a26ef5bbb
2 changed files with 4 additions and 2 deletions

View File

@ -382,7 +382,7 @@ int slap_sasl_getdn( Connection *conn, char *id, int len,
len = dn->bv_len + sizeof("uid=")-1 + sizeof(",cn=auth")-1; len = dn->bv_len + sizeof("uid=")-1 + sizeof(",cn=auth")-1;
/* username may have embedded realm name */ /* username may have embedded realm name */
if( realm = strchr( dn->bv_val, '@') ) { if( ( realm = strchr( dn->bv_val, '@') ) ) {
*realm++ = '\0'; *realm++ = '\0';
len += sizeof(",cn=")-2; len += sizeof(",cn=")-2;
} else if( user_realm && *user_realm ) { } else if( user_realm && *user_realm ) {

View File

@ -286,7 +286,9 @@ static void slap_sasl_rx_exp(
static int slap_sasl_regexp( struct berval *in, struct berval *out ) static int slap_sasl_regexp( struct berval *in, struct berval *out )
{ {
char *saslname = in->bv_val; char *saslname = in->bv_val;
#if 0
char *scope[] = { "base", "one", "sub" }; char *scope[] = { "base", "one", "sub" };
#endif
SaslRegexp_t *reg; SaslRegexp_t *reg;
int i; int i;
@ -386,7 +388,7 @@ void slap_sasl2dn( Connection *conn,
struct berval *saslname, struct berval *sasldn ) struct berval *saslname, struct berval *sasldn )
{ {
int rc; int rc;
Backend *be; Backend *be = NULL;
struct berval dn = { 0, NULL }; struct berval dn = { 0, NULL };
int scope = LDAP_SCOPE_BASE; int scope = LDAP_SCOPE_BASE;
Filter *filter = NULL; Filter *filter = NULL;