[vte/vte-0-34] [stream] Fix warnings



commit 2a44325fb611d76b22ffe49722e38440a3a0e480
Author: Behdad Esfahbod <behdad behdad org>
Date:   Sun Sep 29 20:17:18 2013 -0400

    [stream] Fix warnings

 src/vtestream-base.h |    2 +-
 src/vtestream-file.h |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/vtestream-base.h b/src/vtestream-base.h
index 5b77e4d..2732b20 100644
--- a/src/vtestream-base.h
+++ b/src/vtestream-base.h
@@ -33,7 +33,7 @@ typedef struct _VteStreamClass {
        GObjectClass parent_class;
 
        void (*reset) (VteStream *stream, gsize offset);
-       gsize (*append) (VteStream *stream, const char *data, gsize len);
+       void (*append) (VteStream *stream, const char *data, gsize len);
        gboolean (*read) (VteStream *stream, gsize offset, char *data, gsize len);
        void (*truncate) (VteStream *stream, gsize offset);
        void (*new_page) (VteStream *stream);
diff --git a/src/vtestream-file.h b/src/vtestream-file.h
index 88985fa..601db53 100644
--- a/src/vtestream-file.h
+++ b/src/vtestream-file.h
@@ -197,7 +197,6 @@ static void
 _vte_file_stream_append (VteStream *astream, const char *data, gsize len)
 {
        VteFileStream *stream = (VteFileStream *) astream;
-       gsize ret;
 
        _vte_file_stream_ensure_fd0 (stream);
 
@@ -266,11 +265,11 @@ _vte_file_stream_new_page (VteStream *astream)
 }
 
 static gsize
-_vte_file_stream_head (VteStream *astream, guint index)
+_vte_file_stream_head (VteStream *astream, guint _index)
 {
        VteFileStream *stream = (VteFileStream *) astream;
 
-       return index == 0 ? stream->head : stream->offset[index - 1];
+       return _index == 0 ? stream->head : stream->offset[_index - 1];
 }
 
 static void


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