diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-06-08 09:19:15 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-06-08 09:19:15 +0300 |
commit | 79cbad0dff9d90f4b79fc09f2c5793ed28531608 (patch) | |
tree | 809028ce280e8d73622272552a4b07ca2073c110 /mail | |
parent | 73be707da183c2ed8d59e7da781790c8ee759d1d (diff) | |
download | mailutils-79cbad0dff9d90f4b79fc09f2c5793ed28531608.tar.gz mailutils-79cbad0dff9d90f4b79fc09f2c5793ed28531608.tar.bz2 |
Various minor fixes.
* include/mailutils/diag.h (mu_full_program_name): New extern.
* libmailutils/diag/diag.c (mu_full_program_name): New global.
(mu_set_program_name): Set mu_full_program_name.
(mu_diag_at_locus): Fix format specifier.
* libmailutils/diag/bt.c: Use mu_full_program_name instead of
program_invocation_name.
* libmailutils/diag/wd.c (mu_wd): Likewise.
* comsat/comsat.c: Fix format specifiers.
* lib/mailcap.c: Likewise.
* libmu_sieve/util.c: Cast formatted arguments to match format specs.
* mh/mh_getopt.c: Likewise.
* libmailutils/cidr/fromstr.c: Add missing includes.
* libproto/mailer/smtp.c: Likewise.
* libproto/pop/mbox.c: Likewise.
* testsuite/smtpsend.c: Likewise.
* mu/getarg.c: Likewise.
* mu/imap.c: Likewise.
* mu/pop.c (com_connect): Protect TLS code with #ifdef.
* mu/Makefile.am (EXTRA_DIST): Add mu-setup.awk.
* mail/summary.c (mail_summary): Fix data types of the counters.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/summary.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/mail/summary.c b/mail/summary.c index 2339636a6..072a25f76 100644 --- a/mail/summary.c +++ b/mail/summary.c @@ -28,8 +28,8 @@ mail_summary (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED) mu_attribute_t attr; size_t msgno; size_t count = 0; - int mseen = 0, mnew = 0, mdelete = 0; - int first_new = 0, first_unread = 0; + unsigned long mseen = 0, mnew = 0, mdelete = 0; + size_t first_new = 0, first_unread = 0; mu_mailbox_messages_count (mbox, &count); for (msgno = 1; msgno <= count; msgno++) @@ -62,17 +62,15 @@ mail_summary (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED) mu_mailbox_get_url (mbox, &url); mu_printf ("\"%s\": ", util_url_to_string (url)); } - mu_printf ( - ngettext ("%d message", "%d messages", count), count); + mu_printf (ngettext ("%lu message", "%lu messages", + (unsigned long) count), (unsigned long) count); if (mnew > 0) - mu_printf (ngettext (" %d new", " %d new", mnew), mnew); + mu_printf (ngettext (" %lu new", " %lu new", mnew), mnew); if (mseen > 0) - mu_printf (ngettext (" %d unread", " %d unread", mseen), - mseen); + mu_printf (ngettext (" %lu unread", " %lu unread", mseen), mseen); if (mdelete > 0) - mu_printf ( - ngettext (" %d deleted", " %d deleted", mdelete), - mdelete); + mu_printf (ngettext (" %lu deleted", " %lu deleted", mdelete), + mdelete); mu_printf ("\n"); /* Set the cursor. */ |