path: root/comsat
diff options
authorSergey Poznyakoff <>2011-06-08 09:19:15 +0300
committerSergey Poznyakoff <>2011-06-08 09:19:15 +0300
commit79cbad0dff9d90f4b79fc09f2c5793ed28531608 (patch)
tree809028ce280e8d73622272552a4b07ca2073c110 /comsat
parent73be707da183c2ed8d59e7da781790c8ee759d1d (diff)
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/ (EXTRA_DIST): Add mu-setup.awk. * mail/summary.c (mail_summary): Fix data types of the counters.
Diffstat (limited to 'comsat')
1 files changed, 4 insertions, 3 deletions
diff --git a/comsat/comsat.c b/comsat/comsat.c
index 2d22414b3..9592e484c 100644
--- a/comsat/comsat.c
+++ b/comsat/comsat.c
@@ -379,9 +379,10 @@ comsat_connection (int fd, struct sockaddr *sa, int salen,
char *p = mu_sockaddr_to_astr (sa, salen);
mu_diag_output (MU_DIAG_INFO,
- ngettext ("received %d byte from %s",
- "received %d bytes from %s", rdlen),
- rdlen, p);
+ ngettext ("received %lu byte from %s",
+ "received %lu bytes from %s",
+ (unsigned long) rdlen),
+ (unsigned long) rdlen, p);
mu_diag_output (MU_DIAG_INFO, "string: %s", buffer);
free (p);

Return to:

Send suggestions and report system problems to the System administrator.