Introduction
Introduction Statistics Contact Development Disclaimer Help
ed: Remove nothing comments - 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 <[email protected]>
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:
M ed.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);
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.