diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-25 18:52:41 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-10-25 18:52:41 +0200 |
commit | 4f36463dfe2d17b2932a656fffee9aeb7832abe4 (patch) | |
tree | 5753700afe4a98bf23cd35ff2a423fe0b11ac398 /examples | |
parent | f0cc7bda9699c31f2c478928f78b16876db2fa25 (diff) | |
download | mailutils-4f36463dfe2d17b2932a656fffee9aeb7832abe4.tar.gz mailutils-4f36463dfe2d17b2932a656fffee9aeb7832abe4.tar.bz2 |
Variois fixes (mostly to placate gcc)
* examples/base64.c, examples/mta.c,
imap4d/auth_gss.c, imap4d/imap4d.c,
imap4d/preauth.c, libmu_auth/ldap.c,
libmu_auth/virtual.c, libmu_scm/mu_body.c,
libmu_scm/mu_port.c, libproto/mailer/smtp.c,
mailbox/acl.c, mailbox/secret.c, pop3d/pop3d.c,
python/libmu_py/address.c, sql/odbc.c: Fix argument
signedness.
* imap4d/fetch.c, imap4d/store.c (closures):
Change type of `count' to int, to match the
signature of util_msgset.
* include/mailutils/guile.h (mu_scm_message_get): Fix
return type (const is useless here).
* libmu_scm/mu_message.c (mu_scm_message_get): Likewise.
(scm_mu_message_copy): Fix type of the `wr' automatic variable.
* libmu_scm/mu_mime.c (mu_scm_mime_get): Remove const qualifier
from the return type.
* libmu_argp/cmdline.c: Include stdlib.h.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/base64.c | 5 | ||||
-rw-r--r-- | examples/mta.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/examples/base64.c b/examples/base64.c index 6c8e0b51e..0cc1bc393 100644 --- a/examples/base64.c +++ b/examples/base64.c @@ -94,7 +94,8 @@ main (int argc, char * argv []) MU_ASSERT (mu_stdio_stream_create (&out, stdout, 0)); MU_ASSERT (mu_stream_open (out)); - while (mu_stream_read (flt, &buffer, sizeof (buffer), total, &size) == 0 + while (mu_stream_read (flt, (char*) &buffer, + sizeof (buffer), total, &size) == 0 && size > 0) { if (printable && !ISPRINT (buffer)) @@ -104,7 +105,7 @@ main (int argc, char * argv []) mu_stream_sequential_write (out, outbuf, strlen (outbuf)); } else - mu_stream_sequential_write (out, &buffer, size); + mu_stream_sequential_write (out, (char*) &buffer, size); total += size; } diff --git a/examples/mta.c b/examples/mta.c index 226aab286..f919b3008 100644 --- a/examples/mta.c +++ b/examples/mta.c @@ -803,7 +803,8 @@ mta_smtp (int argc, char **argv) { fd_set rfds; struct sockaddr_in his_addr; - int sfd, len, status; + int sfd, status; + socklen_t len; FD_ZERO (&rfds); FD_SET (fd, &rfds); |