summaryrefslogtreecommitdiff
path: root/programs/gvfs-cat.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@src.gnome.org>2007-09-13 09:42:17 +0000
committerAlexander Larsson <alexl@src.gnome.org>2007-09-13 09:42:17 +0000
commitc5ccb75eb87cac16e3ea89a0c54648d435ebf863 (patch)
tree4caeac42116df9a5a703c8346838faf8d536628f /programs/gvfs-cat.c
parent445323913d69e0b2aee7747e2121f6ef0d0298da (diff)
downloadgvfs-c5ccb75eb87cac16e3ea89a0c54648d435ebf863.tar.gz
Make cancellable explicitly passed to sync ops
Original git commit by Alexander Larsson <alex@localhost.localdomain> at 1163095361 +0100 svn path=/trunk/; revision=144
Diffstat (limited to 'programs/gvfs-cat.c')
-rw-r--r--programs/gvfs-cat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/programs/gvfs-cat.c b/programs/gvfs-cat.c
index a72edb5e..5e7eea12 100644
--- a/programs/gvfs-cat.c
+++ b/programs/gvfs-cat.c
@@ -28,7 +28,7 @@ cat (GFile *file)
error = NULL;
while (1)
{
- res = g_input_stream_read (in, buffer, 1024, &error);
+ res = g_input_stream_read (in, buffer, 1024, NULL, &error);
if (res > 0)
{
ssize_t written;
@@ -60,7 +60,7 @@ cat (GFile *file)
out:
- close_res = g_input_stream_close (in, &error);
+ close_res = g_input_stream_close (in, NULL, &error);
if (!close_res)
{
g_printerr ("Error closing: %s\n", error->message);