mirror of git://git.suckless.org/sbase
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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue