From 3a26ef5bbb66879e456f2e9f70d91ae6f8f094b1 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 16 Aug 2002 16:33:22 +0000 Subject: [PATCH] silence warnings --- servers/slapd/sasl.c | 2 +- servers/slapd/saslauthz.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 10dae31cd6..31774cf445 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -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; /* username may have embedded realm name */ - if( realm = strchr( dn->bv_val, '@') ) { + if( ( realm = strchr( dn->bv_val, '@') ) ) { *realm++ = '\0'; len += sizeof(",cn=")-2; } else if( user_realm && *user_realm ) { diff --git a/servers/slapd/saslauthz.c b/servers/slapd/saslauthz.c index 82e68378b9..cbfff75d7a 100644 --- a/servers/slapd/saslauthz.c +++ b/servers/slapd/saslauthz.c @@ -286,7 +286,9 @@ static void slap_sasl_rx_exp( static int slap_sasl_regexp( struct berval *in, struct berval *out ) { char *saslname = in->bv_val; +#if 0 char *scope[] = { "base", "one", "sub" }; +#endif SaslRegexp_t *reg; int i; @@ -386,7 +388,7 @@ void slap_sasl2dn( Connection *conn, struct berval *saslname, struct berval *sasldn ) { int rc; - Backend *be; + Backend *be = NULL; struct berval dn = { 0, NULL }; int scope = LDAP_SCOPE_BASE; Filter *filter = NULL; -- 2.39.5