X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Ftools%2Fchlog2replog.c;h=ec31ed457fdc521e6c656045e40d0a55d0143a04;hb=5b4e2498d9bccda2be65e005942bcd3eec61486b;hp=58ae5aa6e53202e14d9df5d81b6ae50dd2639260;hpb=21c70857f1029309d6bc5a5b6a93d7537494b742;p=openldap diff --git a/servers/slapd/tools/chlog2replog.c b/servers/slapd/tools/chlog2replog.c index 58ae5aa6e5..ec31ed457f 100644 --- a/servers/slapd/tools/chlog2replog.c +++ b/servers/slapd/tools/chlog2replog.c @@ -473,13 +473,13 @@ main( int argc, char **argv ) break; default: usage( progname ); - exit( 1 ); + exit( EXIT_FAILURE ); } } if (( dn_suffix == NULL ) || ( nreplicas == 0 )) { usage( progname ); - exit( 1 ); + exit( EXIT_FAILURE ); } if ( ofile == NULL ) { @@ -494,12 +494,12 @@ main( int argc, char **argv ) if (( std_ps = ps_alloc( std_open )) == NULLPS || std_setup( std_ps, ofp ) != OK ) { fprintf( stderr, "std_ps setup failed - help!\n" ); - exit( 1 ); + exit( EXIT_FAILURE ); } if (( rps = ps_alloc( str_open )) == NULLPS || str_setup( rps, NULLCP, 0, 0 ) != OK ) { fprintf( stderr, "rps setup failed - help!\n" ); - exit( 1 ); + exit( EXIT_FAILURE ); } @@ -569,7 +569,7 @@ main( int argc, char **argv ) if ( ofile != NULL ) { if (( ofp = lock_fopen( ofile, "a", &lfp )) == NULL ) { perror( "open" ); - exit( 1 ); + exit( EXIT_FAILURE ); } } /* @@ -697,5 +697,5 @@ main( int argc, char **argv ) sprintf( nbuf, "%s.lock", ofile ); (void) unlink( nbuf ); } - exit( 0 ); + exit( EXIT_SUCCESS ); }