]> diplodocus.org Git - nmh/blobdiff - uip/msgchk.c
Use DIM(a) macro a few more times; array's dimension using sizeof.
[nmh] / uip / msgchk.c
index a412aceaed14dd133f916adc4e08e9105fc7478e..3bc7f230fc9bdb2bb8e412b379e192a1e781262d 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * msgchk.c -- check for mail
+/* msgchk.c -- check for mail
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,6 +8,7 @@
 #include <h/mh.h>
 #include <h/mts.h>
 #include <h/tws.h>
+#include <h/utils.h>
 #include <pwd.h>
 
 #include <h/popsbr.h>
@@ -400,7 +400,7 @@ remotemail (char *host, char *port, char *user, char *proxy, int notifysw,
                printf ("%s has ", user);
 
            printf ("%d message%s (%d bytes)",
-                   nmsgs, nmsgs != 1 ? "s" : "", nbytes);
+                   nmsgs, PLURALS(nmsgs), nbytes);
        }
        else
            notifysw = 0;