cmp: Increase buffer size for non-mmap case.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: rpokala Differential Revision: https://reviews.freebsd.org/D38281
This commit is contained in:
parent
6673a5476d
commit
134841a7f3
@ -65,8 +65,10 @@ c_special(int fd1, const char *file1, off_t skip1,
|
||||
|
||||
if ((fp1 = fdopen(fd1, "r")) == NULL)
|
||||
err(ERR_EXIT, "%s", file1);
|
||||
(void)setvbuf(fp1, NULL, _IOFBF, 65536);
|
||||
if ((fp2 = fdopen(fd2, "r")) == NULL)
|
||||
err(ERR_EXIT, "%s", file2);
|
||||
(void)setvbuf(fp2, NULL, _IOFBF, 65536);
|
||||
|
||||
dfound = 0;
|
||||
while (skip1--)
|
||||
|
Loading…
Reference in New Issue
Block a user