aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-multipart-signed.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-07-31 01:25:01 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-31 01:25:01 +0800
commit8198a7b94ed1a04f5b4aa3d5ba5d33ee2e9843ba (patch)
treeced23aae4f17e65f881827dc6c210556ca801f2f /camel/camel-multipart-signed.c
parent2f1bbf508a9e814c4a160991ed8c2b40fdf2c2e2 (diff)
downloadgsoc2013-evolution-8198a7b94ed1a04f5b4aa3d5ba5d33ee2e9843ba.tar.gz
gsoc2013-evolution-8198a7b94ed1a04f5b4aa3d5ba5d33ee2e9843ba.tar.zst
gsoc2013-evolution-8198a7b94ed1a04f5b4aa3d5ba5d33ee2e9843ba.zip
Also updated.
2003-07-30 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-message.c (write_to_stream): Also updated. * camel-data-wrapper.c (write_to_stream): This should return ssize_t * camel-multipart-signed.c (write_to_stream): Updated. * camel-multipart.c (write_to_stream): Same. * camel-mime-part.c (write_to_stream): Here too. svn path=/trunk/; revision=22029
Diffstat (limited to 'camel/camel-multipart-signed.c')
-rw-r--r--camel/camel-multipart-signed.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/camel/camel-multipart-signed.c b/camel/camel-multipart-signed.c
index a089cb0cc3..557209f44a 100644
--- a/camel/camel-multipart-signed.c
+++ b/camel/camel-multipart-signed.c
@@ -53,17 +53,17 @@
#define d(x) /*(printf("%s(%d): ", __FILE__, __LINE__),(x))
#include <stdio.h>;*/
-static void signed_add_part(CamelMultipart *multipart, CamelMimePart *part);
-static void signed_add_part_at(CamelMultipart *multipart, CamelMimePart *part, guint index);
-static void signed_remove_part(CamelMultipart *multipart, CamelMimePart *part);
+static void signed_add_part (CamelMultipart *multipart, CamelMimePart *part);
+static void signed_add_part_at (CamelMultipart *multipart, CamelMimePart *part, guint index);
+static void signed_remove_part (CamelMultipart *multipart, CamelMimePart *part);
static CamelMimePart *signed_remove_part_at (CamelMultipart *multipart, guint index);
-static CamelMimePart *signed_get_part(CamelMultipart *multipart, guint index);
-static guint signed_get_number(CamelMultipart *multipart);
+static CamelMimePart *signed_get_part (CamelMultipart *multipart, guint index);
+static guint signed_get_number (CamelMultipart *multipart);
-static int write_to_stream(CamelDataWrapper *data_wrapper, CamelStream *stream);
-static void set_mime_type_field(CamelDataWrapper *data_wrapper, CamelContentType *mime_type);
-static int construct_from_stream(CamelDataWrapper *data_wrapper, CamelStream *stream);
-static int signed_construct_from_parser(CamelMultipart *multipart, struct _CamelMimeParser *mp);
+static ssize_t write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
+static void set_mime_type_field (CamelDataWrapper *data_wrapper, CamelContentType *mime_type);
+static int construct_from_stream (CamelDataWrapper *data_wrapper, CamelStream *stream);
+static int signed_construct_from_parser (CamelMultipart *multipart, struct _CamelMimeParser *mp);
static CamelMultipartClass *parent_class = NULL;
@@ -459,13 +459,14 @@ signed_construct_from_parser(CamelMultipart *multipart, struct _CamelMimeParser
return 0;
}
-static int
+static ssize_t
write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream)
{
CamelMultipartSigned *mps = (CamelMultipartSigned *)data_wrapper;
CamelMultipart *mp = (CamelMultipart *)mps;
const char *boundary;
- int count, total=0;
+ ssize_t total = 0;
+ ssize_t count;
/* we have 3 basic cases:
1. constructed, we write out the data wrapper stream we got