This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU gsasl".
http://git.savannah.gnu.org/cgit/gsasl.git/commit/?id=062d4941fbb8c96ee721e542dbbea10ef4f27041 The branch, master has been updated via 062d4941fbb8c96ee721e542dbbea10ef4f27041 (commit) from 676c27d3de20a1d85b6b0f981d5a446ec82485c1 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 062d4941fbb8c96ee721e542dbbea10ef4f27041 Author: Brad Hards <[email protected]> Date: Mon May 30 12:40:20 2011 +1000 Fix compilation problems associated with -Wunused-result and -Werror These warnings are a bit excessive, but they are enabled by default on some systems (e.g. Ubuntu) with some compilers (gcc 4.5.2 in my case). Signed-off-by: Brad Hards <[email protected]> Signed-off-by: Simon Josefsson <[email protected]> ----------------------------------------------------------------------- Summary of changes: src/imap.c | 12 +++++++++--- src/smtp.c | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/imap.c b/src/imap.c index 6affa41..c7bc3ed 100644 --- a/src/imap.c +++ b/src/imap.c @@ -110,8 +110,11 @@ imap_authenticate (const char *mech) { char *buf; int rc; + int len; - asprintf (&buf, ". AUTHENTICATE %s", mech); + len = asprintf (&buf, ". AUTHENTICATE %s", mech); + if (len < 0) + return 0; rc = writeln (buf); free (buf); if (!rc) @@ -126,11 +129,14 @@ imap_step_send (const char *data) { char *buf; int rc; + int len; if (args_info.server_flag) - asprintf (&buf, "+ %s", data); + len = asprintf (&buf, "+ %s", data); else - asprintf (&buf, "%s", data); + len = asprintf (&buf, "%s", data); + if (len < 0) + return 0; rc = writeln (buf); free (buf); if (!rc) diff --git a/src/smtp.c b/src/smtp.c index c76a9c7..b14ab33 100644 --- a/src/smtp.c +++ b/src/smtp.c @@ -114,8 +114,11 @@ smtp_authenticate (const char *mech) { char *buf; int rc; + int len; - asprintf (&buf, "AUTH %s", mech); + len = asprintf (&buf, "AUTH %s", mech); + if (len < 0) + return 0; rc = writeln (buf); free (buf); if (!rc) @@ -130,11 +133,14 @@ smtp_step_send (const char *data) { char *buf; int rc; + int len; if (args_info.server_flag) - asprintf (&buf, "334 %s", data); + len = asprintf (&buf, "334 %s", data); else - asprintf (&buf, "%s", data); + len = asprintf (&buf, "%s", data); + if (len < 0) + return 0; rc = writeln (buf); free (buf); if (!rc) hooks/post-receive -- GNU gsasl _______________________________________________ Gsasl-commit mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gsasl-commit
