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.
This commit is contained in:
Roberto E. Vargas Caballero 2023-11-27 08:32:24 +01:00
parent 54a0fc3ecc
commit 516e7fec92
1 changed files with 2 additions and 2 deletions

4
ed.c
View File

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