diff options
| author | Matthew Barnes <mbarnes@redhat.com> | 2010-02-06 20:54:21 -0500 |
|---|---|---|
| committer | Matthew Barnes <mbarnes@redhat.com> | 2010-02-06 20:54:21 -0500 |
| commit | 385ac7dcd386a3860e494cf7e894201a9a973001 (patch) | |
| tree | 651aa88a142b9f0b1d9dba4a247340c3f609891e /camel/providers/imapx/camel-imapx-utils.c | |
| parent | ed729af002b935f7ab8542f4177919859dfc22c2 (diff) | |
| download | evolution-data-server-385ac7dcd386a3860e494cf7e894201a9a973001.tar.gz | |
Coding style and whitespace cleanup.
Diffstat (limited to 'camel/providers/imapx/camel-imapx-utils.c')
| -rw-r--r-- | camel/providers/imapx/camel-imapx-utils.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/camel/providers/imapx/camel-imapx-utils.c b/camel/providers/imapx/camel-imapx-utils.c index 7cb706490..8a52841e2 100644 --- a/camel/providers/imapx/camel-imapx-utils.c +++ b/camel/providers/imapx/camel-imapx-utils.c @@ -1502,12 +1502,11 @@ imap_parse_status_info (struct _CamelIMAPXStream *is, CamelException *ex) return sinfo; } - static void generate_uids_from_sequence (GPtrArray *uids, guint32 end_uid) { guint32 uid = GPOINTER_TO_UINT (g_ptr_array_index (uids, uids->len - 1)); - + uid++; while (uid <= end_uid) { g_ptr_array_add (uids, GUINT_TO_POINTER (uid)); @@ -1533,11 +1532,11 @@ imap_parse_uids (CamelIMAPXStream *is, CamelException *ex) sequence = TRUE; is_prev_number = FALSE; } else { - guint32 uid = strtoul ((char *) token, NULL, 10); + guint32 uid = strtoul ((gchar *) token, NULL, 10); is_prev_number = TRUE; sequence = FALSE; - + if (sequence) generate_uids_from_sequence (uids, uid); else |
