From: Ralph Corderoy Date: Sat, 26 Aug 2017 18:24:05 +0000 (+0100) Subject: Replace printf("foo\n") with puts("foo"). X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/73d7063b670f141854b0cb43ff35d37b830d8756?ds=sidebyside Replace printf("foo\n") with puts("foo"). --- diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index 1efc1e6a..e7651f58 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -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 to list \"%s\"...", mname)) { if (ofilen > 1) - printf ("\n\n\n"); + puts("\n\n"); printf ("Press 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 (); } diff --git a/uip/prompter.c b/uip/prompter.c index 878b2b43..e5170dfe 100644 --- a/uip/prompter.c +++ b/uip/prompter.c @@ -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);