[evolution-data-server] imapx_step: Return a success boolean.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] imapx_step: Return a success boolean.
- Date: Mon, 23 Jan 2012 22:11:35 +0000 (UTC)
commit d9857b84b8c9ac0641392a3e7a0cfe000894b501
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jan 21 17:59:09 2012 -0500
imapx_step: Return a success boolean.
camel/providers/imapx/camel-imapx-server.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index cb9ca4e..7d3402f 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2101,7 +2101,7 @@ imapx_completion (CamelIMAPXServer *imap,
return TRUE;
}
-static void
+static gboolean
imapx_step (CamelIMAPXServer *is,
GCancellable *cancellable,
GError **error)
@@ -2113,18 +2113,20 @@ imapx_step (CamelIMAPXServer *is,
// poll ? wait for other stuff? loop?
tok = camel_imapx_stream_token (is->stream, &token, &len, cancellable, error);
if (tok < 0)
- return;
+ return FALSE;
if (tok == '*')
- imapx_untagged (is, cancellable, error);
+ return imapx_untagged (is, cancellable, error);
else if (tok == IMAPX_TOK_TOKEN)
- imapx_completion (is, token, len, cancellable, error);
+ return imapx_completion (is, token, len, cancellable, error);
else if (tok == '+')
- imapx_continuation (is, FALSE, cancellable, error);
- else
- g_set_error (
- error, CAMEL_IMAPX_ERROR, 1,
- "unexpected server response:");
+ return imapx_continuation (is, FALSE, cancellable, error);
+
+ g_set_error (
+ error, CAMEL_IMAPX_ERROR, 1,
+ "unexpected server response:");
+
+ return FALSE;
}
/* Used to run 1 command synchronously,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]