aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-fs.c
diff options
context:
space:
mode:
authorBertrand Guiheneuf <bertrand@src.gnome.org>2000-03-06 17:38:42 +0800
committerBertrand Guiheneuf <bertrand@src.gnome.org>2000-03-06 17:38:42 +0800
commit7c164f12b9ae13cd2f7e068b1b8626701ab8390f (patch)
tree4027d784956aee7e7b28b78b563edcb639645cd5 /camel/camel-stream-fs.c
parentffad0d32ceef317c2995378f654e8214629948f0 (diff)
downloadgsoc2013-evolution-7c164f12b9ae13cd2f7e068b1b8626701ab8390f.tar.gz
gsoc2013-evolution-7c164f12b9ae13cd2f7e068b1b8626701ab8390f.tar.zst
gsoc2013-evolution-7c164f12b9ae13cd2f7e068b1b8626701ab8390f.zip
More changes than a man can remember.
The UI works now. svn path=/trunk/; revision=2074
Diffstat (limited to 'camel/camel-stream-fs.c')
-rw-r--r--camel/camel-stream-fs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c
index 16c5da2ba6..5f533dad8a 100644
--- a/camel/camel-stream-fs.c
+++ b/camel/camel-stream-fs.c
@@ -161,7 +161,6 @@ static void
_set_bounds (CamelStreamFs *stream_fs, guint32 inf_bound, guint32 sup_bound)
{
- printf ("sup_bounds = %u\n", sup_bound);
/* store the bounds */
stream_fs->inf_bound = inf_bound;
stream_fs->sup_bound = sup_bound;
@@ -529,12 +528,11 @@ _seek (CamelSeekableStream *stream, gint offset, CamelStreamSeekPolicy policy)
- printf ("***** Seeking : real_offset=%d, whence=%d\n", real_offset, whence);
return_position = lseek (stream_fs->fd, real_offset, whence) - stream_fs->inf_bound;
- if (((CAMEL_SEEKABLE_STREAM (stream)->cur_pos + stream_fs->inf_bound) != return_position) && stream_fs->eof)
+ if (((CAMEL_SEEKABLE_STREAM (stream)->cur_pos) != return_position) && stream_fs->eof)
stream_fs->eof = FALSE;
- CAMEL_SEEKABLE_STREAM (stream)->cur_pos = return_position - stream_fs->inf_bound;
+ CAMEL_SEEKABLE_STREAM (stream)->cur_pos = return_position;
return return_position;