Silence warnings (rearrange if(dryrun) vs. if(verbose)

This commit is contained in:
Hallvard Furuseth 2005-07-27 08:48:43 +00:00
parent 397d7171c0
commit f5dd017738

View File

@ -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 );