From: Kurt Zeilenga Date: Tue, 16 May 2000 21:54:24 +0000 (+0000) Subject: Remove Lint. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2939 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=df96737bf23c4904b05d778ca2e469ecad74a832;p=openldap Remove Lint. --- diff --git a/servers/slapd/filter.c b/servers/slapd/filter.c index 5843543165..dc9ef6fc44 100644 --- a/servers/slapd/filter.c +++ b/servers/slapd/filter.c @@ -185,20 +185,16 @@ get_filter( } #ifdef SLAPD_SCHEMA_NOT_COMPAT - { - char *text; - int rc; - f->f_desc = NULL; - err = slap_bv2ad( &type, &f->f_desc, &text ); - - if( err != LDAP_SUCCESS ) { - ch_free( type.bv_val ); - break; - } + f->f_desc = NULL; + err = slap_bv2ad( &type, &f->f_desc, text ); + if( err != LDAP_SUCCESS ) { ch_free( type.bv_val ); + break; } + ch_free( type.bv_val ); + *fstr = ch_malloc( sizeof("(=*)") + f->f_desc->ad_cname->bv_len ); sprintf( *fstr, "(%s=*)", diff --git a/servers/slapd/schema.c b/servers/slapd/schema.c index 55ee96c92b..39f1acc5e5 100644 --- a/servers/slapd/schema.c +++ b/servers/slapd/schema.c @@ -79,7 +79,7 @@ schema_info( Entry **entry, char **text ) val.bv_len = strlen( ++val.bv_val ); #ifdef SLAPD_SCHEMA_NOT_COMPAT - rc = slap_str2ad( rdn, &desc, &text ); + rc = slap_str2ad( rdn, &desc, text ); if( rc != LDAP_SUCCESS ) { free( rdn );