aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-mem.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>1999-08-29 23:57:47 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>1999-08-29 23:57:47 +0800
commit68a9dad22b742e3034eea24a57a0e7fad3356201 (patch)
tree852a65e1a2c0ab0a8d507bcdc8bba64bf2765be1 /camel/camel-stream-mem.c
parente826255bf13255f2b5c626192de4fd10a3885b6f (diff)
downloadgsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.gz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.bz2
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.lz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.xz
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.tar.zst
gsoc2013-evolution-68a9dad22b742e3034eea24a57a0e7fad3356201.zip
text parameter declared const
1999-08-28 bertrand <Bertrand.Guiheneuf@aful.org> * camel/camel-mime-part.c (camel_mime_part_set_text): text parameter declared const * camel/camel-mime-part-utils.c (camel_mime_part_store_stream_in_buffer): actually test correctly nb_bytes_read_chunk is >0 * camel/gstring-util.c: * camel/gmime-content-field.c: * camel/providers/MH/camel-mh-folder.c: * camel/camel-stream-fs.c: include string.h * camel/camel-stream-mem.c (_write): return the numver of written bytes. * camel/camel-stream-buffered-fs.c (_eos): return sthg * camel/camel-stream.c (default_camel_seek): return something. * Started to work on new recipient code. * fixed various leaks. svn path=/trunk/; revision=1146
Diffstat (limited to 'camel/camel-stream-mem.c')
-rw-r--r--camel/camel-stream-mem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/camel-stream-mem.c b/camel/camel-stream-mem.c
index b659e4f30a..ddb7edd819 100644
--- a/camel/camel-stream-mem.c
+++ b/camel/camel-stream-mem.c
@@ -188,7 +188,8 @@ _write (CamelStream *stream, const gchar *buffer, gint n)
g_return_val_if_fail (camel_stream_mem->position>=0, -1);
camel_stream_mem->buffer = g_byte_array_append (camel_stream_mem->buffer, (const guint8 *)buffer, n);
camel_stream_mem->position += n;
-
+
+ return n;
}
@@ -219,6 +220,7 @@ static gint
_available (CamelStream *stream)
{
g_warning ("Not implemented yet");
+ return -1;
}
@@ -234,6 +236,7 @@ static gboolean
_eos (CamelStream *stream)
{
g_warning ("Not implemented yet");
+ return FALSE;
}