summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-09-27 11:48:23 -0400
committerNathan Straz <nstraz@redhat.com>2013-10-02 14:11:33 -0400
commit044bfc699f1ced1ed03bcee6855a4752ab76ef01 (patch)
tree52bbb1dd69c348e0d6037cc8725fc4a93cf79985
parent3a99470c355c1d2d479c4a58ac83cd31f2d59c5f (diff)
downloadqarsh-044bfc699f1ced1ed03bcee6855a4752ab76ef01.zip
qarsh-044bfc699f1ced1ed03bcee6855a4752ab76ef01.tar.gz
qarsh-044bfc699f1ced1ed03bcee6855a4752ab76ef01.tar.xz
Remove unused variables
-rw-r--r--qarshd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/qarshd.c b/qarshd.c
index 3db4e96..dc53d21 100644
--- a/qarshd.c
+++ b/qarshd.c
@@ -59,8 +59,6 @@ sigset_t orig_sigmask;
int childfds[3] = { -1, -1, -1 }; /* pipes to child for stdin/stdout/stderr */
int receivefd = -1;
int sendfd = -1;
-off_t recvsize = 0;
-off_t received = 0;
void
lprintf(int priority, const char *format, ...)
@@ -177,8 +175,6 @@ prepare_recvfile(struct qa_packet *qp)
/* Store fd to check data packets against */
receivefd = fd;
- recvsize = qp->qp_recvfile.qp_count;
- received = 0;
return make_qp_data_allow(0, QARSHD_BUFSIZE);
}
@@ -203,7 +199,6 @@ receive_data(struct qa_packet *qp)
}
nwrote += ret;
} while (nwrote < qp->qp_data.qp_count);
- received += nwrote;
return make_qp_data_allow(0, nwrote);
}