Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/cmp/special.c
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | eof: if (ferror(fp1)) | ||||
if (ferror(fp2)) | if (ferror(fp2)) | ||||
err(ERR_EXIT, "%s", file2); | err(ERR_EXIT, "%s", file2); | ||||
if (feof(fp1)) { | if (feof(fp1)) { | ||||
if (!feof(fp2)) | if (!feof(fp2)) | ||||
eofmsg(file1); | eofmsg(file1); | ||||
} else | } else | ||||
if (feof(fp2)) | if (feof(fp2)) | ||||
eofmsg(file2); | eofmsg(file2); | ||||
fclose(fp1); | |||||
ngie: What about `fp2`? | |||||
asomersAuthorUnsubmitted Not Done Inline ActionsGrr, I should've seen that. Still, I wish Coverity would sanely sort its output. asomers: Grr, I should've seen that. Still, I wish Coverity would sanely sort its output. | |||||
if (dfound) | if (dfound) | ||||
exit(DIFF_EXIT); | exit(DIFF_EXIT); | ||||
} | } |
What about fp2?