sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit 516e7fec92c5e0b8ec031abeda62903b0d255c37
parent 54a0fc3ecc34511bcba021bfedac10d965a3efe7
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 27 Nov 2023 08:32:24 +0100

ed: Remove nothing comments

Several bugs happened in the past due to this kind of comments
and it is better to get rid of them.

Diffstat:
Med.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ed.c b/ed.c @@ -199,7 +199,7 @@ makeline(char *s, int *off) len = 0; } else { while ((c = *s++) && c != '\n') - /* nothing */; + ; len = s - begin; if ((lp->seek = lseek(scratch, 0, SEEK_END)) < 0 || write(scratch, begin, len) < 0) { @@ -482,7 +482,7 @@ skipblank(void) char c; while ((c = input()) == ' ' || c == '\t') - /* nothing */; + ; back(c); }