commit 516e7fec92c5e0b8ec031abeda62903b0d255c37
Author:     Roberto E. Vargas Caballero <k...@shike2.com>
AuthorDate: Mon Nov 27 08:32:24 2023 +0100
Commit:     Roberto E. Vargas Caballero <k...@shike2.com>
CommitDate: Thu Dec 28 17:16:24 2023 +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.

diff --git a/ed.c b/ed.c
index b6f4f1c..b94afa5 100644
--- 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);
 }
 

Reply via email to