From: Howard Chu Date: Mon, 17 Dec 2001 22:48:29 +0000 (+0000) Subject: from jon@symas.com - minor cleanup X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~633 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3bd8946ca08e4e47e4948fb4bc18d19a7f36d224;p=openldap from jon@symas.com - minor cleanup --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index dda814b385..30fa29afe4 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -1131,6 +1131,7 @@ aci_bvstrdup( struct berval *bv ) return(s); } +#ifdef SLAPD_ACI_ENABLED static int aci_strbvcmp( const char *s, @@ -1148,6 +1149,7 @@ aci_strbvcmp( return(-1); return(0); } +#endif static int aci_get_part( diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index 077fb6f146..d160ee5704 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -773,7 +773,7 @@ extern int num_subs; /* config.c */ int glue_sub_init( ) { - int i, j, k; + int i, j; int cont = num_subs; BackendDB *b1, *be; BackendInfo *bi; diff --git a/servers/slapd/limits.c b/servers/slapd/limits.c index 4a19e01a5e..dc614779a5 100644 --- a/servers/slapd/limits.c +++ b/servers/slapd/limits.c @@ -81,7 +81,7 @@ get_limits( * if ndn is more that one rdn * below dn_pat, continue */ - if ( dn_rdnlen( NULL, ndn ) != d - 1 ) { + if ( (size_t) dn_rdnlen( NULL, ndn ) != d - 1 ) { break; } } diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index 7b3c9a088b..ad8cc62bc8 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -218,7 +218,7 @@ LDAP_SLAPD_F (Attribute *) backend_operational( */ LDAP_SLAPD_F (int) glue_back_initialize( BackendInfo *bi ); - +LDAP_SLAPD_F (int) glue_sub_init( void ); /* * ch_malloc.c diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 1d3ea42415..5b04f2920d 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -1240,7 +1240,7 @@ approxMatch( /* Work through the asserted value's words, to see if at least some of the words are there, in the same order. */ len = 0; - while ( nextchunk < avlen ) { + while ( (size_t) nextchunk < avlen ) { len = strcspn( assertv + nextchunk, SLAPD_APPROX_DELIMITER); if( len == 0 ) { nextchunk++; diff --git a/servers/slapd/tools/slappasswd.c b/servers/slapd/tools/slappasswd.c index 639b8a3f2d..0e16351908 100644 --- a/servers/slapd/tools/slappasswd.c +++ b/servers/slapd/tools/slappasswd.c @@ -42,12 +42,10 @@ usage(const char *s) int main( int argc, char *argv[] ) { - int rc; char *scheme = "{SSHA}"; char *newpw = NULL; int i; - int version = -1; struct berval passwd; struct berval *hash = NULL;