summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-04-19 21:37:10 -0700
committerDavid Sterba <dsterba@suse.cz>2013-04-23 18:56:27 +0200
commit4782e8ebdb583dfa3615f7b38dee729d34f62ec1 (patch)
tree2cfa7d951013e3dbae75c424a627965b1cb72efb
parente9217541db0861ce30178a11f9aadba6c914289b (diff)
btrfs-progs: fix send-test build
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>
-rw-r--r--send-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/send-test.c b/send-test.c
index 8c14718c..4a53ae24 100644
--- a/send-test.c
+++ b/send-test.c
@@ -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;
}