]> diplodocus.org Git - nmh/blobdiff - uip/pick.c
Support iCalendar event request files that don't end with a newline.
[nmh] / uip / pick.c
index 09fd7cd9654d76a2db4ffc087d50cd5049158570..eb7e3573f0b258a2f20cdf47795e9a452e99883a 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * pick.c -- search for messages by content
+/* pick.c -- search for messages by content
  *
  * This code is Copyright (c) 2002, 2008, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -253,7 +251,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);
            }
@@ -306,7 +304,7 @@ main (int argc, char **argv)
      * Print total matched if not printing each matched message number.
      */
     if (!listsw) {
-       printf ("%d hit%s\n", mp2->numsel, mp2->numsel == 1 ? "" : "s");
+       printf ("%d hit%s\n", mp2->numsel, PLURALS(mp2->numsel));
     }
 
     svector_free (seqs);