[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gsasl branch, master, updated. gsasl-1-6-0-14-g062d494
From: |
Simon Josefsson |
Subject: |
[SCM] GNU gsasl branch, master, updated. gsasl-1-6-0-14-g062d494 |
Date: |
Mon, 06 Jun 2011 19:32:46 +0000 |
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 <address@hidden>
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 <address@hidden>
Signed-off-by: Simon Josefsson <address@hidden>
-----------------------------------------------------------------------
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gsasl branch, master, updated. gsasl-1-6-0-14-g062d494,
Simon Josefsson <=