aboutsummaryrefslogtreecommitdiffstats
path: root/camel/gmime-utils.c
diff options
context:
space:
mode:
authorbertrand <Bertrand.Guiheneuf@aful.org>2000-02-15 06:27:54 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-02-15 06:27:54 +0800
commit6cffd8501c17f06066196a19674d6af225ff6381 (patch)
treecc42e7ef4e55ca8bbcf0e879f8b31b35a28289e9 /camel/gmime-utils.c
parentfe058b1be72112298e356343f3a8b35fd60a072b (diff)
downloadgsoc2013-evolution-6cffd8501c17f06066196a19674d6af225ff6381.tar.gz
gsoc2013-evolution-6cffd8501c17f06066196a19674d6af225ff6381.tar.zst
gsoc2013-evolution-6cffd8501c17f06066196a19674d6af225ff6381.zip
use the eos stream method. (gmime_read_line_from_stream): ditto.
2000-02-14 bertrand <Bertrand.Guiheneuf@aful.org> * camel/gmime-utils.c (get_header_array_from_stream): use the eos stream method. (gmime_read_line_from_stream): ditto. * camel/camel-stream-fs.h (struct ): add the eof field cosmetics changes. * camel/camel-stream-fs.c (camel_stream_fs_init): set eof. (_read): set eof on end of file. (_eos): implemented. * camel/gmime-utils.c (get_header_array_from_stream): make a blocking version of the header parser. When the fs stream uses gnome-vfs, this should be changed. (gmime_read_line_from_stream): ditto. svn path=/trunk/; revision=1779
Diffstat (limited to 'camel/gmime-utils.c')
-rw-r--r--camel/gmime-utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/gmime-utils.c b/camel/gmime-utils.c
index 1b1f1aa1e1..7ceb0219ec 100644
--- a/camel/gmime-utils.c
+++ b/camel/gmime-utils.c
@@ -221,7 +221,8 @@ get_header_array_from_stream (CamelStream *stream)
}
} else {
- if (nb_char_read <0) {
+ if (camel_stream_eos (stream)) {
+
end_of_file=TRUE;
end_of_header_line = TRUE;
@@ -275,7 +276,7 @@ gmime_read_line_from_stream (CamelStream *stream)
}
} else {
- if (nb_char_read <0)
+ if (camel_stream_eos (stream))
end_of_stream = TRUE;
}