diff options
author | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-01 21:38:28 +0800 |
---|---|---|
committer | Bertrand Guiheneuf <bertrand@src.gnome.org> | 1999-08-01 21:38:28 +0800 |
commit | cac0ba57e6c47acd94600b5add1930301df33c50 (patch) | |
tree | a399fb592b6e5df4afbaa7d1d677d818b3767880 /camel/camel-stream.c | |
parent | 5709aa9ef61dc720571acec93085f7d2d4ef4758 (diff) | |
download | gsoc2013-evolution-cac0ba57e6c47acd94600b5add1930301df33c50.tar.gz gsoc2013-evolution-cac0ba57e6c47acd94600b5add1930301df33c50.tar.zst gsoc2013-evolution-cac0ba57e6c47acd94600b5add1930301df33c50.zip |
merge a lot of work. Rough ChangeLog will follow
svn path=/trunk/; revision=1052
Diffstat (limited to 'camel/camel-stream.c')
-rw-r--r-- | camel/camel-stream.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/camel/camel-stream.c b/camel/camel-stream.c index 5554b8fe38..c66a950b26 100644 --- a/camel/camel-stream.c +++ b/camel/camel-stream.c @@ -112,7 +112,7 @@ camel_stream_read (CamelStream *stream, gchar *buffer, gint n) * in the stream. **/ gint -camel_stream_write (CamelStream *stream, gchar *buffer, gint n) +camel_stream_write (CamelStream *stream, const gchar *buffer, gint n) { return CS_CLASS (stream)->write (stream, buffer, n); } @@ -135,14 +135,14 @@ camel_stream_flush (CamelStream *stream) * * Return value: the number of bytes available. **/ -static gint +gint camel_stream_available (CamelStream *stream) { return CS_CLASS (stream)->available (stream); } /** - * camle_stream_eos: + * camel_stream_eos: * @stream: a CamelStream object * * Test if there are bytes left to read on the @stream object. @@ -150,7 +150,7 @@ camel_stream_available (CamelStream *stream) * Return value: %TRUE if all the contents on the stream has been read, or * %FALSE if information is still available. **/ -static gboolean +gboolean camel_stream_eos (CamelStream *stream) { return CS_CLASS (stream)->eos (stream); @@ -183,10 +183,10 @@ void camel_stream_write_strings (CamelStream *stream, ... ) { va_list args; - char *string; + const char *string; va_start(args, stream); - string = va_arg (args, char *); + string = va_arg (args, const char *); while (string) { camel_stream_write_string (stream, string); |