]> git.sur5r.net Git - openldap/commitdiff
Remove Lint.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 16 May 2000 21:54:24 +0000 (21:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 16 May 2000 21:54:24 +0000 (21:54 +0000)
servers/slapd/filter.c
servers/slapd/schema.c

index 58435431653e6dd0b5a1ef4b767f88c7b48a8bc1..dc9ef6fc443aaa4ed81abe5ed7f6639207af450e 100644 (file)
@@ -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=*)",
index 55ee96c92b0b840665ff2d7d9c5bc82c6e6e1831..39f1acc5e5a6d6571291c82e7f04f0a42844168c 100644 (file)
@@ -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 );