]> diplodocus.org Git - nmh/blobdiff - uip/pick.c
Reverted commit 9a4b4a3d3b27fe4a7ff6d0b8724ce1c06b5917eb.
[nmh] / uip / pick.c
index fb339d46e6731f6f7e2015246a0a5d571df5f1ef..801716fe3cb35934724360608ee6dfad36268d4a 100644 (file)
@@ -66,7 +66,7 @@ main (int argc, char **argv)
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgnum_array nums = { 0, 0, NULL };
     struct msgs *mp, *mp2;
-    register FILE *fp;
+    FILE *fp;
     int debug = 0;
     int reverse = 0;
     int start, end, inc;
@@ -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)
-                   printf ("%s\n", m_name (msgnum));
+                   puts(m_name (msgnum));
            } else {
                app_msgnum(&nums, msgnum);
            }
@@ -324,6 +324,6 @@ static void
 putzero_done (int status)
 {
     if (listsw && status && !isatty (fileno (stdout)))
-       printf ("0\n");
+       puts("0");
     exit (status);
 }