]> git.sur5r.net Git - openldap/commitdiff
Silence warnings (rearrange if(dryrun) vs. if(verbose)
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 27 Jul 2005 08:48:43 +0000 (08:48 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 27 Jul 2005 08:48:43 +0000 (08:48 +0000)
servers/slapd/slapadd.c

index 9ff3e8699063e05c81a5e089d5ccfdcd6b884db9..6785c3e8ff3ad240040834201b698ce2986078c6 100644 (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 );