mirror of
git://git.suckless.org/sbase
synced 2025-01-02 21:12:15 +00:00
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:
parent
54a0fc3ecc
commit
516e7fec92
4
ed.c
4
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user