[vte/vte-next] [stream-file] Remove another lseek



commit 5833751619c3431227a6f565c999a57137819f9b
Author: Behdad Esfahbod <behdad behdad org>
Date:   Fri Sep 27 18:09:38 2013 -0400

    [stream-file] Remove another lseek

 src/vtestream-file.h |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index 173bc53..0f7b720 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -268,8 +268,7 @@ _vte_file_stream_new_page (VteStream *astream)
        VteFileStream *stream = (VteFileStream *) astream;
 
        stream->offset[1] = stream->offset[0];
-       if (stream->fd[0])
-               stream->offset[0] += lseek (stream->fd[0], 0, SEEK_END);
+       stream->offset[0] = stream->head;
        _vte_file_stream_swap_fds (stream);
        _xtruncate (stream->fd[0], 0);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]