mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Silence warnings (rearrange if(dryrun) vs. if(verbose)
This commit is contained in:
parent
397d7171c0
commit
f5dd017738
@ -301,16 +301,13 @@ slapadd( int argc, char **argv )
|
||||
if( continuemode ) continue;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( verbose ) {
|
||||
if ( dryrun ) {
|
||||
fprintf( stderr, "added: \"%s\"\n",
|
||||
e->e_dn );
|
||||
} else {
|
||||
if ( verbose )
|
||||
fprintf( stderr, "added: \"%s\" (%08lx)\n",
|
||||
e->e_dn, (long) id );
|
||||
}
|
||||
} else {
|
||||
if ( verbose )
|
||||
fprintf( stderr, "added: \"%s\"\n",
|
||||
e->e_dn );
|
||||
}
|
||||
|
||||
entry_free( e );
|
||||
|
Loading…
Reference in New Issue
Block a user