[gmime] Fixed g_mime_stream_write_to_stream() to return gint64
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Fixed g_mime_stream_write_to_stream() to return gint64
- Date: Tue, 31 Jan 2017 19:39:17 +0000 (UTC)
commit dc0e6ae1c58b3445936fc4605f5bce2aee9e52a9
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date: Tue Jan 31 14:38:47 2017 -0500
Fixed g_mime_stream_write_to_stream() to return gint64
gmime/gmime-stream.c | 9 +++++----
gmime/gmime-stream.h | 4 ++--
2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/gmime/gmime-stream.c b/gmime/gmime-stream.c
index 6512294..2306841 100644
--- a/gmime/gmime-stream.c
+++ b/gmime/gmime-stream.c
@@ -537,10 +537,11 @@ g_mime_stream_printf (GMimeStream *stream, const char *fmt, ...)
*
* Returns: the number of bytes written or %-1 on fail.
**/
-ssize_t
+gint64
g_mime_stream_write_to_stream (GMimeStream *src, GMimeStream *dest)
{
- ssize_t nread, nwritten, total = 0;
+ ssize_t nread, nwritten;
+ gint64 total = 0;
char buf[4096];
g_return_val_if_fail (GMIME_IS_STREAM (src), -1);
@@ -579,10 +580,10 @@ g_mime_stream_write_to_stream (GMimeStream *src, GMimeStream *dest)
*
* Returns: the number of bytes written or %-1 on fail.
**/
-ssize_t
+gint64
g_mime_stream_writev (GMimeStream *stream, GMimeStreamIOVector *vector, size_t count)
{
- ssize_t total = 0;
+ gint64 total = 0;
size_t i;
g_return_val_if_fail (GMIME_IS_STREAM (stream), -1);
diff --git a/gmime/gmime-stream.h b/gmime/gmime-stream.h
index 2d61e42..2db2851 100644
--- a/gmime/gmime-stream.h
+++ b/gmime/gmime-stream.h
@@ -130,9 +130,9 @@ void g_mime_stream_set_bounds (GMimeStream *stream, gint64 start, gint64 en
ssize_t g_mime_stream_write_string (GMimeStream *stream, const char *str);
ssize_t g_mime_stream_printf (GMimeStream *stream, const char *fmt, ...) G_GNUC_PRINTF (2, 3);
-ssize_t g_mime_stream_write_to_stream (GMimeStream *src, GMimeStream *dest);
+gint64 g_mime_stream_write_to_stream (GMimeStream *src, GMimeStream *dest);
-ssize_t g_mime_stream_writev (GMimeStream *stream, GMimeStreamIOVector *vector, size_t count);
+gint64 g_mime_stream_writev (GMimeStream *stream, GMimeStreamIOVector *vector, size_t count);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]