Minor fixes.
* imap4d/imap4d.c: Avoid gcc warnings. * libmailutils/tests/imapio.c (main): Fix format specifier. * maidag/mailquota.c (dbm_retrieve_quota): Likewise. * mail/quit.c (mail_mbox_close): Likewise. * mail/mail.c (options): Fix improper initialization. * mu/mu.h (mu_getans): Add proto. * mu/util.c: Include netinet/in.h
Showing
7 changed files
with
15 additions
and
8 deletions
... | @@ -589,6 +589,9 @@ imap4d_mainloop (int ifd, int ofd, enum tls_mode tls) | ... | @@ -589,6 +589,9 @@ imap4d_mainloop (int ifd, int ofd, enum tls_mode tls) |
589 | case tls_no: | 589 | case tls_no: |
590 | imap4d_capability_remove (IMAP_CAPA_STARTTLS); | 590 | imap4d_capability_remove (IMAP_CAPA_STARTTLS); |
591 | tls_available = 0; | 591 | tls_available = 0; |
592 | break; | ||
593 | default: | ||
594 | break; | ||
592 | } | 595 | } |
593 | 596 | ||
594 | session.tls_mode = tls; | 597 | session.tls_mode = tls; | ... | ... |
... | @@ -82,7 +82,7 @@ main (int argc, char **argv) | ... | @@ -82,7 +82,7 @@ main (int argc, char **argv) |
82 | if (wc == 0) | 82 | if (wc == 0) |
83 | break; | 83 | break; |
84 | 84 | ||
85 | mu_stream_printf (mu_strerr, "%d\n", wc); | 85 | mu_stream_printf (mu_strerr, "%lu\n", (unsigned long) wc); |
86 | for (i = 0; i < wc; i++) | 86 | for (i = 0; i < wc; i++) |
87 | { | 87 | { |
88 | mu_stream_printf (mu_strerr, "%d: '%s'\n", i, wv[i]); | 88 | mu_stream_printf (mu_strerr, "%d: '%s'\n", i, wv[i]); | ... | ... |
... | @@ -131,10 +131,10 @@ dbm_retrieve_quota (char *name, mu_off_t *quota) | ... | @@ -131,10 +131,10 @@ dbm_retrieve_quota (char *name, mu_off_t *quota) |
131 | unlimited = 1; | 131 | unlimited = 1; |
132 | else if (contentd.mu_dsize > sizeof (buffer) - 1) | 132 | else if (contentd.mu_dsize > sizeof (buffer) - 1) |
133 | { | 133 | { |
134 | mu_error (ngettext ("mailbox quota for `%s' is too big: %d digit", | 134 | mu_error (ngettext ("mailbox quota for `%s' is too big: %lu digit", |
135 | "mailbox quota for `%s' is too big: %d digits", | 135 | "mailbox quota for `%s' is too big: %lu digits", |
136 | contentd.mu_dsize), | 136 | contentd.mu_dsize), |
137 | name, contentd.mu_dsize); | 137 | name, (unsigned long) contentd.mu_dsize); |
138 | *quota = groupquota; | 138 | *quota = groupquota; |
139 | } | 139 | } |
140 | else | 140 | else | ... | ... |
... | @@ -47,7 +47,7 @@ static struct argp_option options[] = { | ... | @@ -47,7 +47,7 @@ static struct argp_option options[] = { |
47 | {"nosum", 'N', NULL, 0, | 47 | {"nosum", 'N', NULL, 0, |
48 | N_("do not display initial header summary"), 0}, | 48 | N_("do not display initial header summary"), 0}, |
49 | {"print", 'p', NULL, 0, N_("print all mail to standard output"), 0}, | 49 | {"print", 'p', NULL, 0, N_("print all mail to standard output"), 0}, |
50 | {"read", NULL, NULL, OPTION_ALIAS }, | 50 | {"read", 0, NULL, OPTION_ALIAS }, |
51 | {"return-address", 'r', N_("ADDRESS"), 0, | 51 | {"return-address", 'r', N_("ADDRESS"), 0, |
52 | N_("use address as the return address when sending mail"), 0}, | 52 | N_("use address as the return address when sending mail"), 0}, |
53 | {"quit", 'q', NULL, 0, | 53 | {"quit", 'q', NULL, 0, | ... | ... |
... | @@ -50,10 +50,10 @@ mail_mbox_close () | ... | @@ -50,10 +50,10 @@ mail_mbox_close () |
50 | mu_mailbox_get_url (mbox, &url); | 50 | mu_mailbox_get_url (mbox, &url); |
51 | mu_mailbox_messages_count (mbox, &held_count); | 51 | mu_mailbox_messages_count (mbox, &held_count); |
52 | mu_printf ( | 52 | mu_printf ( |
53 | ngettext ("Held %d message in %s\n", | 53 | ngettext ("Held %lu message in %s\n", |
54 | "Held %d messages in %s\n", | 54 | "Held %lu messages in %s\n", |
55 | held_count), | 55 | held_count), |
56 | held_count, util_url_to_string (url)); | 56 | (unsigned long) held_count, util_url_to_string (url)); |
57 | mu_mailbox_close (mbox); | 57 | mu_mailbox_close (mbox); |
58 | mu_mailbox_destroy (&mbox); | 58 | mu_mailbox_destroy (&mbox); |
59 | return 0; | 59 | return 0; | ... | ... |
... | @@ -61,3 +61,6 @@ int shell_verbose (int argc, char **argv, | ... | @@ -61,3 +61,6 @@ int shell_verbose (int argc, char **argv, |
61 | 61 | ||
62 | int get_bool (const char *str, int *pb); | 62 | int get_bool (const char *str, int *pb); |
63 | int get_port (const char *port_str, int *pn); | 63 | int get_port (const char *port_str, int *pn); |
64 | |||
65 | int mu_getans (const char *variants, const char *fmt, ...); | ||
66 | ... | ... |
-
Please register or sign in to post a comment