diff options
author | Nathan Straz <nstraz@redhat.com> | 2013-08-12 16:00:07 -0400 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2013-09-11 17:40:21 -0400 |
commit | 0a361ddae1649b0a3102e113d16e6f7f07f6d7e8 (patch) | |
tree | 135db1a19710250f11da8c31e3be47efac3b047f /qacp.c | |
parent | b7aafc98a56966d4aab712ac0f73df0ae07ca657 (diff) | |
download | qarsh-0a361ddae1649b0a3102e113d16e6f7f07f6d7e8.tar.gz qarsh-0a361ddae1649b0a3102e113d16e6f7f07f6d7e8.tar.xz qarsh-0a361ddae1649b0a3102e113d16e6f7f07f6d7e8.zip |
Move packet sequence numbering to send_packet
Diffstat (limited to 'qacp.c')
-rw-r--r-- | qacp.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -51,7 +51,6 @@ int qacp_fd = -1; /* The control connection to qacpd */ unsigned short qarsh_ss_family; /* AF_INET/AF_INET6, set on connect */ short quiet = 0; -int packet_seq = 1; void usage() @@ -72,7 +71,6 @@ set_remote_user(char *user, char *group) struct qa_packet *qp; qp = make_qp_setuser(user, group); - qp->qp_seq = packet_seq++; send_packet(qacp_fd, qp); qpfree(qp); qp = recv_packet(qacp_fd); @@ -97,7 +95,6 @@ qacp_rstat(const char *rmtpath, int *rstaterrno) struct qp_rstat_pkt *rstatp; qp = make_qp_rstat(rmtpath, NULL); - qp->qp_seq = packet_seq++; send_packet(qacp_fd, qp); qpfree(qp); @@ -262,7 +259,6 @@ qacp_recvonefile(const char *host, const char *srcfile, const char *destfile) * qarshd to send a file. */ qp = make_qp_sendfile(srcfile, port); - qp->qp_seq = packet_seq++; send_packet(qacp_fd, qp); qpfree(qp); |