diff options
author | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:28:33 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2007-09-13 14:28:33 +0000 |
commit | c6c78b06a3a4a15ec79894c243fc687e27501983 (patch) | |
tree | 353752f4ad25994c280969b3f5853a61c367d2ac /client/gdaemonfileoutputstream.c | |
parent | 2dd8ee434f1745ec34a697be31e26cf862d24985 (diff) | |
download | gvfs-c6c78b06a3a4a15ec79894c243fc687e27501983.tar.gz |
Make buffer argument to write const
Original git commit by Alexander Larsson <alexl@redhat.com> at 1184250648 +0200
svn path=/trunk/; revision=691
Diffstat (limited to 'client/gdaemonfileoutputstream.c')
-rw-r--r-- | client/gdaemonfileoutputstream.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/client/gdaemonfileoutputstream.c b/client/gdaemonfileoutputstream.c index 62b88db8..51e21ac1 100644 --- a/client/gdaemonfileoutputstream.c +++ b/client/gdaemonfileoutputstream.c @@ -41,7 +41,7 @@ typedef struct { WriteState state; /* Output */ - char *buffer; + const char *buffer; gsize buffer_size; gsize buffer_pos; @@ -128,7 +128,7 @@ struct _GDaemonFileOutputStream { }; static gssize g_daemon_file_output_stream_write (GOutputStream *stream, - void *buffer, + const void *buffer, gsize count, GCancellable *cancellable, GError **error); @@ -147,7 +147,7 @@ static gboolean g_daemon_file_output_stream_seek (GFileOutputStream GCancellable *cancellable, GError **error); static void g_daemon_file_output_stream_write_async (GOutputStream *stream, - void *buffer, + const void *buffer, gsize count, int io_priority, GCancellable *cancellable, @@ -454,7 +454,7 @@ iterate_write_state_machine (GDaemonFileOutputStream *file, IOOperationData *io_ if (op->buffer_pos < op->buffer_size) { - io_op->io_buffer = op->buffer + op->buffer_pos; + io_op->io_buffer = (char *)(op->buffer + op->buffer_pos); io_op->io_size = op->buffer_size - op->buffer_pos; io_op->io_allow_cancel = FALSE; return STATE_OP_WRITE; @@ -540,7 +540,7 @@ iterate_write_state_machine (GDaemonFileOutputStream *file, IOOperationData *io_ static gssize g_daemon_file_output_stream_write (GOutputStream *stream, - void *buffer, + const void *buffer, gsize count, GCancellable *cancellable, GError **error) @@ -1202,7 +1202,7 @@ async_write_done (GOutputStream *stream, static void g_daemon_file_output_stream_write_async (GOutputStream *stream, - void *buffer, + const void *buffer, gsize count, int io_priority, GCancellable *cancellable, |