]> diplodocus.org Git - nmh/commitdiff
Replace printf("%s\n", foo) with puts(foo).
authorRalph Corderoy <ralph@inputplus.co.uk>
Sun, 30 Oct 2016 14:05:16 +0000 (14:05 +0000)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sun, 30 Oct 2016 15:17:28 +0000 (15:17 +0000)
mts/smtp/smtp.c
uip/annosbr.c
uip/flist.c
uip/folder.c
uip/mhparam.c
uip/mhpath.c
uip/pick.c
uip/whatnowsbr.c

index f1b4917..fdc56b0 100644 (file)
@@ -873,7 +873,7 @@ again: ;
            continue;
        if (sm_reply.code < 100) {
            if (sm_verbose) {
            continue;
        if (sm_reply.code < 100) {
            if (sm_verbose) {
-               printf ("%s\n", sm_reply.text);
+               puts(sm_reply.text);
                fflush (stdout);
            }
            goto again;
                fflush (stdout);
            }
            goto again;
index 9d73a09..3e4ae80 100644 (file)
@@ -143,7 +143,7 @@ annolist(char *file, char *comp, char *text, int number)
            if (text == NULL && (sp = strrchr(cp, '/')) != (char *)0)
                cp = sp + 1;
 
            if (text == NULL && (sp = strrchr(cp, '/')) != (char *)0)
                cp = sp + 1;
 
-           (void)printf("%s\n", cp);
+            puts(cp);
        }
 
     } while (*field != '\0' && *field != '-');
        }
 
     } while (*field != '\0' && *field != '-');
index 089c761..383c655 100644 (file)
@@ -526,7 +526,7 @@ PrintFolders(void)
 
     if (!Total) {
        for (i = 0; i < nFolders; i++)
 
     if (!Total) {
        for (i = 0; i < nFolders; i++)
-           printf("%s\n", folders[i].name);
+           puts(folders[i].name);
        return;
     }
 
        return;
     }
 
index 423ef7b..67a2874 100644 (file)
@@ -546,7 +546,7 @@ print_folders (void)
     if (all || fshort || ftotal < 1) {
        for (i = 0; i < total_folders; i++) {
            if (fshort) {
     if (all || fshort || ftotal < 1) {
        for (i = 0; i < total_folders; i++) {
            if (fshort) {
-               printf ("%s\n", fi[i].name);
+               puts(fi[i].name);
                continue;
            }
 
                continue;
            }
 
index 55ac3c3..4457829 100644 (file)
@@ -249,7 +249,7 @@ main(int argc, char **argv)
                if (components)
                    printf("%s: ", comps[i]);
 
                if (components)
                    printf("%s: ", comps[i]);
 
-               printf("%s\n", value);
+               puts(value);
            } else
                missed++;
        }
            } else
                missed++;
        }
index 9ab9439..10a8ba9 100644 (file)
@@ -77,7 +77,7 @@ main(int argc, char **argv)
 
     /* If no messages are given, print folder pathname */
     if (!msgs.size) {
 
     /* If no messages are given, print folder pathname */
     if (!msgs.size) {
-       printf ("%s\n", maildir);
+       puts(maildir);
        done (0);
     }
 
        done (0);
     }
 
index 09fd7cd..801716f 100644 (file)
@@ -253,7 +253,7 @@ main (int argc, char **argv)
                admonish (cp, "unable to read message");
            if (fp && pmatches (fp, msgnum, 0L, 0L, debug)) {
                if (listsw)
                admonish (cp, "unable to read message");
            if (fp && pmatches (fp, msgnum, 0L, 0L, debug)) {
                if (listsw)
-                   printf ("%s\n", m_name (msgnum));
+                   puts(m_name (msgnum));
            } else {
                app_msgnum(&nums, msgnum);
            }
            } else {
                app_msgnum(&nums, msgnum);
            }
index 69cbf79..5a73738 100644 (file)
@@ -339,7 +339,7 @@ WhatNow (int argc, char **argv)
 
        case PWDCMDSW:
            /* Print the working directory for attachments */
 
        case PWDCMDSW:
            /* Print the working directory for attachments */
-           printf("%s\n", cwd);
+           puts(cwd);
            break;
 
        case LSCMDSW:
            break;
 
        case LSCMDSW: