summaryrefslogtreecommitdiff
path: root/src/csplit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/csplit.c')
-rw-r--r--src/csplit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/csplit.c b/src/csplit.c
index 8cefdf329..40baba825 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -342,7 +342,7 @@ record_line_starts (struct buffer_record *b)
line_start = b->buffer;
bytes_left = b->bytes_used;
- for (;;)
+ while (true)
{
line_end = memchr (line_start, '\n', bytes_left);
if (line_end == NULL)
@@ -773,7 +773,7 @@ process_regexp (struct control *p, uintmax_t repetition)
if (p->offset >= 0)
{
- for (;;)
+ while (true)
{
line = find_line (++current_line);
if (line == NULL)
@@ -813,7 +813,7 @@ process_regexp (struct control *p, uintmax_t repetition)
else
{
/* Buffer the lines. */
- for (;;)
+ while (true)
{
line = find_line (++current_line);
if (line == NULL)