Skip to content
Snippets Groups Projects
Commit 024bfb96 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

Cleanup prev commit

parent 74cc16ce
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,6 @@ slapcat( int argc, char **argv )
char *data;
int len;
Entry* e;
int writerc;
if ( gotsig )
break;
......@@ -124,16 +123,8 @@ slapcat( int argc, char **argv )
break;
}
writerc = fputs( data, ldiffp->fp );
if ( writerc == EOF ) {
fprintf(stderr, "%s: error writing output.\n",
progname);
rc = EXIT_FAILURE;
break;
}
writerc = fputs( "\n", ldiffp->fp );
if ( writerc == EOF ) {
if ( fputs( data, ldiffp->fp ) == EOF ||
fputs( "\n", ldiffp->fp ) == EOF ) {
fprintf(stderr, "%s: error writing output.\n",
progname);
rc = EXIT_FAILURE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment