Commit 19ad1e2a authored by Howard Chu's avatar Howard Chu
Browse files

Cleanup prev commit

parent 61b5f6d6
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment