summaryrefslogtreecommitdiffstats
path: root/qacp.c
diff options
context:
space:
mode:
Diffstat (limited to 'qacp.c')
-rw-r--r--qacp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qacp.c b/qacp.c
index db6fb90..54474cf 100644
--- a/qacp.c
+++ b/qacp.c
@@ -245,7 +245,7 @@ qacp_recvonefile(const char *host, const char *srcfile, const char *destfile)
* to recv a file from the host running qarshd we have to tell
* qarshd to send a file. */
- qp = make_qp_sendfile(srcfile, outfd);
+ qp = make_qp_sendfile(srcfile);
send_packet(qacp_fd, qp);
qpfree(qp);
@@ -255,7 +255,7 @@ qacp_recvonefile(const char *host, const char *srcfile, const char *destfile)
qp = recv_packet(qacp_fd);
if (qp) {
assert(qp->qp_type == QP_DATA);
- assert(qp->qp_data.qp_remfd == outfd);
+ assert(qp->qp_data.qp_remfd == 0);
assert(rstatp->qp_st_size - nleft == qp->qp_data.qp_offset);
nwrote = write(outfd, qp->qp_data.qp_blob, qp->qp_data.qp_count);
if (nwrote < 0) {