]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/entry.c
Add missing semicolon.
[openldap] / servers / slapd / entry.c
index 7e2a0b389d7bbc1c778ae8625caa9de980d03c41..e0465230e95cb4f072292a9d574c1b7737801ad9 100644 (file)
@@ -49,7 +49,7 @@ str2entry( char       *s )
 
        /* check to see if there's an id included */
        next = s;
-       if ( isdigit( *s ) ) {
+       if ( isdigit( (unsigned char) *s ) ) {
                id = atoi( s );
                if ( (s = ldif_getline( &next )) == NULL ) {
                        Debug( LDAP_DEBUG_TRACE,
@@ -110,7 +110,8 @@ str2entry( char     *s )
                                    e->e_id, e->e_ndn, value );
                                free( e->e_ndn );
                        }
-                       e->e_ndn = dn_normalize_case( ch_strdup( value ) );
+                       e->e_ndn = ch_strdup( value );
+                       (void) dn_normalize_case( e->e_ndn );
                        continue;
                }
 
@@ -217,7 +218,6 @@ entry2str(
 void
 entry_free( Entry *e )
 {
-       int             i;
        Attribute       *a, *next;
 
        if ( e->e_dn != NULL ) {