From 92f17ad648114ce6bf967d890053d5b6b8504c28 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 15 Apr 2020 16:13:22 -0700 Subject: [PATCH] paste: Minor style tweaks Convert for-loop with no initial or continue expression into a while-loop. Drop unnecessary parentheses. --- paste.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paste.c b/paste.c index 0385efa..4fa9fc5 100644 --- a/paste.c +++ b/paste.c @@ -51,10 +51,10 @@ nextline: d = delim[i % delimlen]; c = 0; - for (; efgetrune(&c, dsc[i].fp, dsc[i].name) ;) { + while (efgetrune(&c, dsc[i].fp, dsc[i].name)) { for (m = last + 1; m < i; m++) { if (delim[m % delimlen] != '\0') - efputrune(&(delim[m % delimlen]), stdout, ""); + efputrune(&delim[m % delimlen], stdout, ""); } last = i; if (c == '\n') {