summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c
index 5bd9ebb4b..5be720795 100644
--- a/src/split.c
+++ b/src/split.c
@@ -233,7 +233,7 @@ bytes_split (uintmax_t n_bytes, char *buf, size_t bufsize)
error (EXIT_FAILURE, errno, "%s", infile);
bp_out = buf;
to_read = n_read;
- for (;;)
+ while (true)
{
if (to_read < to_write)
{
@@ -278,7 +278,7 @@ lines_split (uintmax_t n_lines, char *buf, size_t bufsize)
bp = bp_out = buf;
eob = bp + n_read;
*eob = '\n';
- for (;;)
+ while (true)
{
bp = memchr (bp, '\n', eob - bp + 1);
if (bp == eob)