From: Hallvard Furuseth Date: Wed, 27 Jul 2005 08:48:43 +0000 (+0000) Subject: Silence warnings (rearrange if(dryrun) vs. if(verbose) X-Git-Tag: OPENLDAP_AC_BP~183 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f5dd01773873863c4f7d4353c481c9ec06f43a93;p=openldap Silence warnings (rearrange if(dryrun) vs. if(verbose) --- diff --git a/servers/slapd/slapadd.c b/servers/slapd/slapadd.c index 9ff3e86990..6785c3e8ff 100644 --- a/servers/slapd/slapadd.c +++ b/servers/slapd/slapadd.c @@ -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 );