]> diplodocus.org Git - nmh/commitdiff
Replace printf("foo\n") with puts("foo").
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 26 Aug 2017 18:24:05 +0000 (19:24 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 26 Aug 2017 18:24:05 +0000 (19:24 +0100)
uip/mhlsbr.c
uip/prompter.c

index 1efc1e6..e7651f5 100644 (file)
@@ -947,7 +947,7 @@ mhlfile (FILE *fp, char *mname, int ofilen, int ofilec)
                printf (" Forwarded Message%s", PLURALS(ofilec));
            else
                printf (" Message %d", ofilen);
-           printf ("\n\n");
+           puts("\n");
        }
     } else {
        switch (ontty) {
@@ -957,7 +957,7 @@ mhlfile (FILE *fp, char *mname, int ofilen, int ofilec)
                        if ((global.c_flags & CLEARSCR))
                            nmh_clear_screen ();
                        else
-                           printf ("\n\n\n");
+                            puts("\n\n");
                    }
                    printf (">>> %s\n\n", mname);
                }
@@ -968,7 +968,7 @@ mhlfile (FILE *fp, char *mname, int ofilen, int ofilec)
                if (ofilec > 1) {
                    if (SOprintf ("Press <return> to list \"%s\"...", mname)) {
                        if (ofilen > 1)
-                           printf ("\n\n\n");
+                           puts("\n\n");
                        printf ("Press <return> to list \"%s\"...", mname);
                    }
                    fflush (stdout);
@@ -988,7 +988,7 @@ mhlfile (FILE *fp, char *mname, int ofilen, int ofilec)
            default: 
                if (ofilec > 1) {
                    if (ofilen > 1) {
-                       printf ("\n\n\n");
+                       puts("\n\n");
                        if (clearflg > 0)
                            nmh_clear_screen ();
                    }
index 878b2b4..e5170df 100644 (file)
@@ -243,7 +243,7 @@ abort:
                    puts("--------");
                if (field[0]) {
                    if (prepend && body) {
-                       printf ("\n--------Enter initial text\n\n");
+                       puts("\n--------Enter initial text\n");
                        fflush (stdout);
                        for (;;) {
                            getln (buffer, sizeof(buffer));
@@ -264,7 +264,7 @@ abort:
                             state = m_getfld2(&gstate, name, field, &fieldsz)));
                    if (prepend || !body)
                        break;
-                    printf ("\n--------Enter additional text\n\n");
+                    puts("\n--------Enter additional text\n");
                }
 
                fflush (stdout);