mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
from jon@symas.com - minor cleanup
This commit is contained in:
parent
923cdcf3c5
commit
3bd8946ca0
@ -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(
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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++;
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user