btrfs-progs: fix send-test build
authorEric Sandeen <sandeen@redhat.com>
Sat, 20 Apr 2013 04:37:10 +0000 (21:37 -0700)
committerDavid Sterba <dsterba@suse.cz>
Tue, 23 Apr 2013 16:56:27 +0000 (18:56 +0200)
btrfs_read_and_process_send_stream() recently changed its prototype;
this gets it building again.  0 means "do not honor the <end cmd>"
which was the previous default, before

2bfac02 Btrfs-progs: btrfs-receive optionally honors the end-cmd

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
send-test.c

index 8c14718..4a53ae2 100644 (file)
@@ -354,8 +354,8 @@ static void *process_thread(void *arg_)
        int ret;
 
        while (1) {
-               ret = btrfs_read_and_process_send_stream(pipefd[0],
-                                                        &send_ops_print, arg_);
+               ret = btrfs_read_and_process_send_stream(pipefd[-1],
+                                                        &send_ops_print, arg_, 0);
                if (ret)
                        break;
        }