]> git.sur5r.net Git - openldap/commitdiff
Esthetic change: Move break; out of if() to before the next case:
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Dec 2002 15:46:53 +0000 (15:46 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Dec 2002 15:46:53 +0000 (15:46 +0000)
clients/tools/ldapcompare.c
clients/tools/ldapdelete.c
clients/tools/ldapmodify.c
clients/tools/ldapmodrdn.c
clients/tools/ldappasswd.c
clients/tools/ldapsearch.c
clients/tools/ldapwhoami.c

index 5286e156e98d1d2671a7ac78ad29f4a70c5156cf..46917ac9f95792e565c49c975d274843ca2a78bc 100644 (file)
@@ -216,8 +216,7 @@ main( int argc, char **argv )
 
                        assert( authzid == NULL );
                        authzid = control;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
                                fprintf( stderr, "manageDSAit control previously specified\n");
@@ -230,8 +229,7 @@ main( int argc, char **argv )
                        }
 
                        manageDSAit = 1 + crit;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
                                fprintf( stderr, "noop control previously specified\n");
@@ -244,13 +242,14 @@ main( int argc, char **argv )
                        }
 
                        noop = 1 + crit;
-                       break;
 
                } else {
                        fprintf( stderr, "Invalid general control name: %s\n", control );
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
+
                case 'h':       /* ldap host */
                        if( ldapuri != NULL ) {
                                fprintf( stderr, "%s: -h incompatible with -H\n", prog );
@@ -406,7 +405,8 @@ main( int argc, char **argv )
                                        prog );
                                usage( prog );
                                return( EXIT_FAILURE );
-                       } break;
+                       }
+                       break;
                case 'Q':
 #ifdef HAVE_CYRUS_SASL
                        if( version == LDAP_VERSION2 ) {
index 8a1b2e37b3920b448ba909a7b1950391dd3f7d87..e51c38461f4ab59287b15450864a7c0f6e43b3ea 100644 (file)
@@ -215,8 +215,7 @@ main( int argc, char **argv )
 
                        assert( authzid == NULL );
                        authzid = control;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
                                fprintf( stderr, "manageDSAit control previously specified\n");
@@ -229,8 +228,7 @@ main( int argc, char **argv )
                        }
 
                        manageDSAit = 1 + crit;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
                                fprintf( stderr, "noop control previously specified\n");
@@ -243,13 +241,13 @@ main( int argc, char **argv )
                        }
 
                        noop = 1 + crit;
-                       break;
 
                } else {
                        fprintf( stderr, "Invalid general control name: %s\n", control );
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
        case 'h':       /* ldap host */
                if( ldapuri != NULL ) {
                        fprintf( stderr, "%s: -h incompatible with -H\n", prog );
@@ -405,7 +403,8 @@ main( int argc, char **argv )
                                prog );
                        usage( prog );
                        return( EXIT_FAILURE );
-               } break;
+               }
+               break;
        case 'Q':
 #ifdef HAVE_CYRUS_SASL
                if( version == LDAP_VERSION2 ) {
index cddbf8192e73fc0a45a0d582370d8136de2578f5..a131d4cab24153050df0b49b006c75b93cf4160f 100644 (file)
@@ -279,8 +279,7 @@ main( int argc, char **argv )
 
                        assert( authzid == NULL );
                        authzid = control;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
                                fprintf( stderr, "manageDSAit control previously specified\n");
@@ -293,8 +292,7 @@ main( int argc, char **argv )
                        }
 
                        manageDSAit = 1 + crit;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
                                fprintf( stderr, "noop control previously specified\n");
@@ -307,13 +305,13 @@ main( int argc, char **argv )
                        }
 
                        noop = 1 + crit;
-                       break;
 
                } else {
                        fprintf( stderr, "Invalid general control name: %s\n", control );
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
        case 'h':       /* ldap host */
                if( ldapuri != NULL ) {
                        fprintf( stderr, "%s: -h incompatible with -H\n", prog );
@@ -469,7 +467,8 @@ main( int argc, char **argv )
                                prog );
                        usage( prog );
                        return( EXIT_FAILURE );
-               } break;
+               }
+               break;
        case 'Q':
 #ifdef HAVE_CYRUS_SASL
                if( version == LDAP_VERSION2 ) {
index 4b1de065c5d93b0610b19c00cdf584e9f07ac647..3d18b92618e849f2a165f1657d7feef64ad5233e 100644 (file)
@@ -235,8 +235,7 @@ main(int argc, char **argv)
 
                        assert( authzid == NULL );
                        authzid = control;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
                                fprintf( stderr, "manageDSAit control previously specified\n");
@@ -249,8 +248,7 @@ main(int argc, char **argv)
                        }
 
                        manageDSAit = 1 + crit;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
                                fprintf( stderr, "noop control previously specified\n");
@@ -263,13 +261,13 @@ main(int argc, char **argv)
                        }
 
                        noop = 1 + crit;
-                       break;
 
                } else {
                        fprintf( stderr, "Invalid general control name: %s\n", control );
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
        case 'h':       /* ldap host */
                if( ldapuri != NULL ) {
                        fprintf( stderr, "%s: -h incompatible with -H\n", prog );
@@ -425,7 +423,8 @@ main(int argc, char **argv)
                                prog );
                        usage( prog );
                        return( EXIT_FAILURE );
-               } break;
+               }
+               break;
        case 'Q':
 #ifdef HAVE_CYRUS_SASL
                if( version == LDAP_VERSION2 ) {
index d9d20554a88da298b54cab747f1ea5a635ea0b78..dace530506b646fadcf8ee848cc4a622364ee7d9 100644 (file)
@@ -235,8 +235,7 @@ main( int argc, char *argv[] )
 
                        assert( authzid == NULL );
                        authzid = control;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
                                fprintf( stderr, "manageDSAit control previously specified\n");
@@ -249,8 +248,7 @@ main( int argc, char *argv[] )
                        }
 
                        manageDSAit = 1 + crit;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( cvalue != NULL ) {
                                fprintf( stderr, "noop: no control value expected\n" );
@@ -259,13 +257,13 @@ main( int argc, char *argv[] )
                        }
 
                        noop = 1 + crit;
-                       break;
 
                } else {
                        fprintf( stderr, "Invalid general control name: %s\n", control );
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
        case 'h':       /* ldap host */
                if( ldapuri != NULL ) {
                        fprintf( stderr, "%s: -h incompatible with -H\n", prog );
@@ -421,7 +419,8 @@ main( int argc, char *argv[] )
                                prog );
                        usage( prog );
                        return( EXIT_FAILURE );
-               } break;
+               }
+               break;
        case 'Q':
 #ifdef HAVE_CYRUS_SASL
                if( version == LDAP_VERSION2 ) {
index c3eb3a440ec1e0e0addc0af460ee2be18a88b82e..b26778a268363359e99e9ca8fe28038b4ce52800 100644 (file)
@@ -472,8 +472,7 @@ main( int argc, char **argv )
 
                        assert( authzid == NULL );
                        authzid = control;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
                                fprintf( stderr, "manageDSAit control previously specified");
@@ -486,8 +485,7 @@ main( int argc, char **argv )
                        }
 
                        manageDSAit = 1 + crit;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
                                fprintf( stderr, "noop control previously specified");
@@ -500,13 +498,13 @@ main( int argc, char **argv )
                        }
 
                        noop = 1 + crit;
-                       break;
 
                } else {
                        fprintf( stderr, "Invalid general control name: %s\n", control );
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
        case 'h':       /* ldap host */
                if( ldapuri != NULL ) {
                        fprintf( stderr, "%s: -h incompatible with -H\n", prog );
@@ -662,7 +660,8 @@ main( int argc, char **argv )
                                prog );
                        usage( prog );
                        return( EXIT_FAILURE );
-               } break;
+               }
+               break;
        case 'Q':
 #ifdef HAVE_CYRUS_SASL
                if( version == LDAP_VERSION2 ) {
index a770c015baaa43034c441bcb669740377aaeefa8..12dda6f00066f09915d42924aa5a3e85faeed76c 100644 (file)
@@ -191,8 +191,7 @@ main( int argc, char *argv[] )
 
                        assert( authzid == NULL );
                        authzid = control;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
                                fprintf( stderr, "manageDSAit control previously specified\n");
@@ -205,8 +204,7 @@ main( int argc, char *argv[] )
                        }
 
                        manageDSAit = 1 + crit;
-                       break;
-                       
+
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
                                fprintf( stderr, "noop control previously specified\n");
@@ -219,13 +217,13 @@ main( int argc, char *argv[] )
                        }
 
                        noop = 1 + crit;
-                       break;
 
                } else {
                        fprintf( stderr, "Invalid general control name: %s\n", control );
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
        case 'h':       /* ldap host */
                if( ldapuri != NULL ) {
                        fprintf( stderr, "%s: -h incompatible with -H\n", prog );
@@ -371,7 +369,8 @@ main( int argc, char *argv[] )
                                prog );
                        usage( prog );
                        return( EXIT_FAILURE );
-               } break;
+               }
+               break;
        case 'Q':
 #ifdef HAVE_CYRUS_SASL
                if( version == LDAP_VERSION2 ) {