1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 07:01:15 +00:00

paste: Minor style tweaks

Convert for-loop with no initial or continue expression into a
while-loop.

Drop unnecessary parentheses.
This commit is contained in:
Michael Forney 2020-04-15 16:13:22 -07:00
parent 2f0b15201d
commit 92f17ad648

View File

@ -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, "<stdout>");
efputrune(&delim[m % delimlen], stdout, "<stdout>");
}
last = i;
if (c == '\n') {