[vte/vte-0-34] [stream-file] Remove another lseek
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-34] [stream-file] Remove another lseek
- Date: Fri, 27 Sep 2013 22:10:50 +0000 (UTC)
commit fae64189d5370681dccbe4f96c6f0a86153caa3f
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 aa6d03f..6d2371e 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]