[dovecot-cvs] dovecot/src/lib-storage/index/mbox istream-raw-mbox.c, 1.31, 1.32

cras at dovecot.org cras at dovecot.org
Fri Sep 30 23:10:44 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv9151/lib-storage/index/mbox

Modified Files:
	istream-raw-mbox.c 
Log Message:
Added i_stream_seek_mark() and used it



Index: istream-raw-mbox.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/istream-raw-mbox.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- istream-raw-mbox.c	17 Jun 2005 20:51:06 -0000	1.31
+++ istream-raw-mbox.c	30 Sep 2005 20:10:42 -0000	1.32
@@ -279,7 +279,8 @@
 	return ret;
 }
 
-static void _seek(struct _istream *stream, uoff_t v_offset)
+static void _seek(struct _istream *stream, uoff_t v_offset,
+		  int mark __attr_unused__)
 {
 	struct raw_mbox_istream *rstream = (struct raw_mbox_istream *)stream;
 
@@ -492,8 +493,8 @@
 	rstream->body_offset = (uoff_t)-1;
 
 	if (stream->v_offset != rstream->from_offset)
-		i_stream_seek(stream, rstream->from_offset);
-	i_stream_seek(rstream->input, rstream->from_offset);
+		i_stream_seek_mark(stream, rstream->from_offset);
+	i_stream_seek_mark(rstream->input, rstream->from_offset);
 
 	rstream->eof = FALSE;
 	rstream->istream.istream.eof = FALSE;
@@ -535,8 +536,8 @@
 		check = TRUE;
 	}
 
-	i_stream_seek(stream, offset);
-	i_stream_seek(rstream->input, offset);
+	i_stream_seek_mark(stream, offset);
+	i_stream_seek_mark(rstream->input, offset);
 
 	if (check)
 		(void)_read(&rstream->istream);



More information about the dovecot-cvs mailing list