[evolution-data-server] imapx_completion: Return a success boolean.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] imapx_completion: Return a success boolean.
- Date: Mon, 23 Jan 2012 22:11:20 +0000 (UTC)
commit 613311eaa18ed3123d864594848c040fe116fc61
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Jan 21 17:48:57 2012 -0500
imapx_completion: Return a success boolean.
camel/providers/imapx/camel-imapx-server.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 0781b64..66e3c69 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2022,7 +2022,7 @@ imapx_continuation (CamelIMAPXServer *imap,
}
/* handle a completion line */
-static gint
+static gboolean
imapx_completion (CamelIMAPXServer *imap,
guchar *token,
gint len,
@@ -2036,18 +2036,16 @@ imapx_completion (CamelIMAPXServer *imap,
g_set_error (
error, CAMEL_IMAPX_ERROR, 1,
"Server sent unexpected response: %s", token);
-
- return -1;
+ return FALSE;
}
- tag = strtoul ( (const gchar *) token + 1, NULL, 10);
+ tag = strtoul ((gchar *) token + 1, NULL, 10);
if ((ic = imapx_find_command_tag (imap, tag)) == NULL) {
g_set_error (
error, CAMEL_IMAPX_ERROR, 1,
"got response tag unexpectedly: %s", token);
-
- return -1;
+ return FALSE;
}
c(imap->tagprefix, "Got completion response for command %05u '%s'\n", ic->tag, ic->name);
@@ -2085,8 +2083,7 @@ imapx_completion (CamelIMAPXServer *imap,
g_set_error (
error, CAMEL_IMAPX_ERROR, 1,
"command still has unsent parts? %s", ic->name);
-
- return -1;
+ return FALSE;
}
camel_dlist_remove ((CamelDListNode *) ic);
@@ -2101,7 +2098,7 @@ imapx_completion (CamelIMAPXServer *imap,
imapx_command_start_next (imap, cancellable, error);
QUEUE_UNLOCK (imap);
- return 1;
+ return TRUE;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]