]> git.sur5r.net Git - openldap/commitdiff
Clean up error messages
authorKurt Zeilenga <kurt@openldap.org>
Fri, 29 Nov 2002 02:49:11 +0000 (02:49 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 29 Nov 2002 02:49:11 +0000 (02:49 +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 1dedf90ed58d0833e1478e6cb408aad18541547d..5286e156e98d1d2671a7ac78ad29f4a70c5156cf 100644 (file)
@@ -200,16 +200,16 @@ main( int argc, char **argv )
 
                if ( strcasecmp( control, "authzid" ) == 0 ) {
                        if( authzid != NULL ) {
-                               fprintf( stderr, "authzid control previously specified");
+                               fprintf( stderr, "authzid control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue == NULL ) {
-                               fprintf( stderr, "authzid: control value expected" );
+                               fprintf( stderr, "authzid: control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
                        if( !crit ) {
-                               fprintf( stderr, "authzid: must be marked critical" );
+                               fprintf( stderr, "authzid: must be marked critical\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -220,11 +220,11 @@ main( int argc, char **argv )
                        
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
-                               fprintf( stderr, "manageDSAit control previously specified");
+                               fprintf( stderr, "manageDSAit control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "manageDSAit: no control value expected" );
+                               fprintf( stderr, "manageDSAit: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -234,11 +234,11 @@ main( int argc, char **argv )
                        
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
-                               fprintf( stderr, "noop control previously specified");
+                               fprintf( stderr, "noop control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "noop: no control value expected" );
+                               fprintf( stderr, "noop: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
index a326248a0474fc4d7765c0559ac079da0ea3634b..8a1b2e37b3920b448ba909a7b1950391dd3f7d87 100644 (file)
@@ -199,16 +199,16 @@ main( int argc, char **argv )
 
                if ( strcasecmp( control, "authzid" ) == 0 ) {
                        if( authzid != NULL ) {
-                               fprintf( stderr, "authzid control previously specified");
+                               fprintf( stderr, "authzid control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue == NULL ) {
-                               fprintf( stderr, "authzid: control value expected" );
+                               fprintf( stderr, "authzid: control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
                        if( !crit ) {
-                               fprintf( stderr, "authzid: must be marked critical" );
+                               fprintf( stderr, "authzid: must be marked critical\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -219,11 +219,11 @@ main( int argc, char **argv )
                        
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
-                               fprintf( stderr, "manageDSAit control previously specified");
+                               fprintf( stderr, "manageDSAit control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "manageDSAit: no control value expected" );
+                               fprintf( stderr, "manageDSAit: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -233,11 +233,11 @@ main( int argc, char **argv )
                        
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
-                               fprintf( stderr, "noop control previously specified");
+                               fprintf( stderr, "noop control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "noop: no control value expected" );
+                               fprintf( stderr, "noop: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
index 8d4a25da10ae74c2e21796a3084690334426b414..cddbf8192e73fc0a45a0d582370d8136de2578f5 100644 (file)
@@ -263,16 +263,16 @@ main( int argc, char **argv )
 
                if ( strcasecmp( control, "authzid" ) == 0 ) {
                        if( authzid != NULL ) {
-                               fprintf( stderr, "authzid control previously specified");
+                               fprintf( stderr, "authzid control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue == NULL ) {
-                               fprintf( stderr, "authzid: control value expected" );
+                               fprintf( stderr, "authzid: control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
                        if( !crit ) {
-                               fprintf( stderr, "authzid: must be marked critical" );
+                               fprintf( stderr, "authzid: must be marked critical\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -283,11 +283,11 @@ main( int argc, char **argv )
                        
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
-                               fprintf( stderr, "manageDSAit control previously specified");
+                               fprintf( stderr, "manageDSAit control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "manageDSAit: no control value expected" );
+                               fprintf( stderr, "manageDSAit: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -297,11 +297,11 @@ main( int argc, char **argv )
                        
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
-                               fprintf( stderr, "noop control previously specified");
+                               fprintf( stderr, "noop control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "noop: no control value expected" );
+                               fprintf( stderr, "noop: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
index e2052ca01f8b6a98a0dc021983a89f854d3693ba..4b1de065c5d93b0610b19c00cdf584e9f07ac647 100644 (file)
@@ -219,16 +219,16 @@ main(int argc, char **argv)
 
                if ( strcasecmp( control, "authzid" ) == 0 ) {
                        if( authzid != NULL ) {
-                               fprintf( stderr, "authzid control previously specified");
+                               fprintf( stderr, "authzid control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue == NULL ) {
-                               fprintf( stderr, "authzid: control value expected" );
+                               fprintf( stderr, "authzid: control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
                        if( !crit ) {
-                               fprintf( stderr, "authzid: must be marked critical" );
+                               fprintf( stderr, "authzid: must be marked critical\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -239,11 +239,11 @@ main(int argc, char **argv)
                        
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
-                               fprintf( stderr, "manageDSAit control previously specified");
+                               fprintf( stderr, "manageDSAit control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "manageDSAit: no control value expected" );
+                               fprintf( stderr, "manageDSAit: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -253,11 +253,11 @@ main(int argc, char **argv)
                        
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
-                               fprintf( stderr, "noop control previously specified");
+                               fprintf( stderr, "noop control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "noop: no control value expected" );
+                               fprintf( stderr, "noop: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
index bb3536f22729d6b1f7f707c089fe7a7a3c863192..d9d20554a88da298b54cab747f1ea5a635ea0b78 100644 (file)
@@ -219,16 +219,16 @@ main( int argc, char *argv[] )
 
                if ( strcasecmp( control, "authzid" ) == 0 ) {
                        if( authzid != NULL ) {
-                               fprintf( stderr, "authzid control previously specified");
+                               fprintf( stderr, "authzid control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue == NULL ) {
-                               fprintf( stderr, "authzid: control value expected" );
+                               fprintf( stderr, "authzid: control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
                        if( !crit ) {
-                               fprintf( stderr, "authzid: must be marked critical" );
+                               fprintf( stderr, "authzid: must be marked critical\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -239,11 +239,11 @@ main( int argc, char *argv[] )
                        
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
-                               fprintf( stderr, "manageDSAit control previously specified");
+                               fprintf( stderr, "manageDSAit control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "manageDSAit: no control value expected" );
+                               fprintf( stderr, "manageDSAit: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -253,7 +253,7 @@ main( int argc, char *argv[] )
                        
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "noop: no control value expected" );
+                               fprintf( stderr, "noop: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
index 2011f8961236877d6127b81787604e4dcbe02b1e..42b3ffffdc8c2860cbc2dd5d49974369d3e27db1 100644 (file)
@@ -310,7 +310,7 @@ main( int argc, char **argv )
                if ( strcasecmp( control, "mv" ) == 0 ) {
                        /* ValuesReturnFilter control */
                        if( valuesReturnFilter ) {
-                               fprintf( stderr, "ValuesReturnFilter previously specified");
+                               fprintf( stderr, "ValuesReturnFilter previously specified\n");
                                return EXIT_FAILURE;
                        }
                        valuesReturnFilter= 1 + crit;
@@ -329,7 +329,7 @@ main( int argc, char **argv )
                        int num, tmp;
                        /* PagedResults control */
                        if ( pagedResults != 0 ) {
-                               fprintf( stderr, "PagedResultsControl previously specified" );
+                               fprintf( stderr, "PagedResultsControl previously specified\n" );
                                return EXIT_FAILURE;
                        }
                        
@@ -346,7 +346,7 @@ main( int argc, char **argv )
 #ifdef LDAP_CONTROL_SUBENTRIES
                } else if ( strcasecmp( control, "subentries" ) == 0 ) {
                        if( subentries ) {
-                               fprintf( stderr, "subentries control previously specified");
+                               fprintf( stderr, "subentries control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue == NULL || strcasecmp( cvalue, "true") == 0 ) {
index 182cfa40a6b5b986d91033954fa2561c5ae68a3e..a770c015baaa43034c441bcb669740377aaeefa8 100644 (file)
@@ -175,16 +175,16 @@ main( int argc, char *argv[] )
 
                if ( strcasecmp( control, "authzid" ) == 0 ) {
                        if( authzid != NULL ) {
-                               fprintf( stderr, "authzid control previously specified");
+                               fprintf( stderr, "authzid control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue == NULL ) {
-                               fprintf( stderr, "authzid: control value expected" );
+                               fprintf( stderr, "authzid: control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
                        if( !crit ) {
-                               fprintf( stderr, "authzid: must be marked critical" );
+                               fprintf( stderr, "authzid: must be marked critical\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -195,11 +195,11 @@ main( int argc, char *argv[] )
                        
                } else if ( strcasecmp( control, "manageDSAit" ) == 0 ) {
                        if( manageDSAit ) {
-                               fprintf( stderr, "manageDSAit control previously specified");
+                               fprintf( stderr, "manageDSAit control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "manageDSAit: no control value expected" );
+                               fprintf( stderr, "manageDSAit: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }
@@ -209,11 +209,11 @@ main( int argc, char *argv[] )
                        
                } else if ( strcasecmp( control, "noop" ) == 0 ) {
                        if( noop ) {
-                               fprintf( stderr, "noop control previously specified");
+                               fprintf( stderr, "noop control previously specified\n");
                                return EXIT_FAILURE;
                        }
                        if( cvalue != NULL ) {
-                               fprintf( stderr, "noop: no control value expected" );
+                               fprintf( stderr, "noop: no control value expected\n" );
                                usage(prog);
                                return EXIT_FAILURE;
                        }