From 0a361ddae1649b0a3102e113d16e6f7f07f6d7e8 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Mon, 12 Aug 2013 16:00:07 -0400 Subject: Move packet sequence numbering to send_packet --- qacp.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'qacp.c') diff --git a/qacp.c b/qacp.c index acb6146..734f42b 100644 --- a/qacp.c +++ b/qacp.c @@ -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); -- cgit