aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2025-07-13 08:46:24 -0700
committerPaul Eggert2025-07-13 21:09:38 -0700
commitae30a61c74215c3e02fb3c0d603894457a4cfef5 (patch)
tree116194142427f4f61e095f6c5e2ec98133538ddd /src
parent490311f86a97fd8d6633e28143a26e7618f15e79 (diff)
downloademacs-ae30a61c74215c3e02fb3c0d603894457a4cfef5.tar.gz
emacs-ae30a61c74215c3e02fb3c0d603894457a4cfef5.zip
READ_BUF_SIZE → sizeof read_buf
* src/fileio.c (Finsert_file_contents): Minor refactoring. This should help future patches which distinguish read_buf’s size from other uses of READ_BUF_SIZE which may change.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 7aa2113454b..4c3bc5787cf 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4616,11 +4616,11 @@ by calling `format-decode', which see. */)
4616 4616
4617 while (true) 4617 while (true)
4618 { 4618 {
4619 /* Read at most READ_BUF_SIZE bytes at a time, to allow 4619 /* Read one buffer a time, to allow
4620 quitting while reading a huge file. */ 4620 quitting while reading a huge file. */
4621 4621
4622 this = emacs_fd_read (fd, read_buf + unprocessed, 4622 this = emacs_fd_read (fd, read_buf + unprocessed,
4623 READ_BUF_SIZE - unprocessed); 4623 sizeof read_buf - unprocessed);
4624 if (this <= 0) 4624 if (this <= 0)
4625 break; 4625 break;
4626 4626