X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/cfb5a32c4e47d9061ced49e74f34c275bd9e4b54..9322ba2854211794c27fae9468768b80b767c211:/uip/pick.c?ds=inline diff --git a/uip/pick.c b/uip/pick.c index fb339d46..801716fe 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -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); }