summaryrefslogtreecommitdiffstats
path: root/qacp.c
diff options
context:
space:
mode:
Diffstat (limited to 'qacp.c')
-rw-r--r--qacp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/qacp.c b/qacp.c
index 34c0399..39fffba 100644
--- a/qacp.c
+++ b/qacp.c
@@ -144,7 +144,6 @@ qacp_sendonefile(const char *host, const char *srcfile, const char *destfile)
struct qa_packet *qp;
int fd;
ssize_t nbytes;
- off_t offset;
struct stat sb;
const int bufsize = QARSH_MAX_PACKET_SIZE/2;
char buf[bufsize];
@@ -179,7 +178,6 @@ qacp_sendonefile(const char *host, const char *srcfile, const char *destfile)
send_packet(qacp_fd, qp);
qpfree(qp);
- offset = 0;
dallow = 0;
complete = 0;
for (;;) {
@@ -233,11 +231,10 @@ qacp_sendonefile(const char *host, const char *srcfile, const char *destfile)
strerror(errno));
qp = make_qp_returncode(-1, errno, strerror(errno));
} else {
- qp = make_qp_data(0, offset, nbytes, buf);
+ qp = make_qp_data(0, nbytes, buf);
if (nbytes == 0) { /* Transfer is complete */
complete = 1;
} else {
- offset += nbytes;
dallow -= nbytes;
}
}