]> git.sur5r.net Git - openldap/commitdiff
put 'break' only at the end of the 'case'
authorPierangelo Masarati <ando@openldap.org>
Sun, 1 Dec 2002 19:07:05 +0000 (19:07 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 1 Dec 2002 19:07:05 +0000 (19:07 +0000)
clients/tools/ldapsearch.c

index 4a1d30f064fb06aee202ef88b8f60e0bad449e96..c3eb3a440ec1e0e0addc0af460ee2be18a88b82e 100644 (file)
@@ -323,7 +323,6 @@ main( int argc, char **argv )
 
                        vrFilter = cvalue;
                        version = LDAP_VERSION3;
-                       break;
 
                } else if ( strcasecmp( control, "pr" ) == 0 ) {
                        int num, tmp;
@@ -341,7 +340,6 @@ main( int argc, char **argv )
                        }
                        pageSize = (ber_int_t) tmp;
                        pagedResults = 1 + crit;
-                       break;
 
 #ifdef LDAP_CONTROL_SUBENTRIES
                } else if ( strcasecmp( control, "subentries" ) == 0 ) {
@@ -359,7 +357,6 @@ main( int argc, char **argv )
                                return EXIT_FAILURE;
                        }
                        if( crit ) subentries *= -1;
-                       break;
 #endif
 
                } else {
@@ -367,6 +364,8 @@ main( int argc, char **argv )
                        usage(prog);
                        return EXIT_FAILURE;
                }
+               break;
+
        case 'f':       /* input file */
                if( infile != NULL ) {
                        fprintf( stderr, "%s: -f previously specified\n", prog );