diff options
author | Nathan Straz <nstraz@redhat.com> | 2013-09-27 11:42:39 -0400 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2013-10-02 14:11:33 -0400 |
commit | 837ff5d713c667f2ea0d111333098dad3175e9b8 (patch) | |
tree | 311caf43e66721deec3c6a87ec6ea04dc2470205 /qarsh_packet.h | |
parent | db70c6e59af1634d3734019e6e2e17c95f6c6d97 (diff) | |
download | qarsh-837ff5d713c667f2ea0d111333098dad3175e9b8.tar.gz qarsh-837ff5d713c667f2ea0d111333098dad3175e9b8.tar.xz qarsh-837ff5d713c667f2ea0d111333098dad3175e9b8.zip |
Remove offset from data packet
We really don't need this field since we
always copy data sequentially.
Diffstat (limited to 'qarsh_packet.h')
-rw-r--r-- | qarsh_packet.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/qarsh_packet.h b/qarsh_packet.h index 19ade47..430ff79 100644 --- a/qarsh_packet.h +++ b/qarsh_packet.h @@ -95,7 +95,6 @@ struct qp_rstat_pkt { struct qp_data_pkt { int qp_remfd; /* remote fd to write to */ - off_t qp_offset; /* offset in file for this data */ int qp_count; /* length of data buffer */ int free_blob; /* Whether qpfree should free the blob */ void *qp_blob; @@ -151,7 +150,7 @@ struct qa_packet *make_qp_kill(int sig); struct qa_packet *make_qp_recvfile(const char *path, off_t count, mode_t mode); struct qa_packet *make_qp_sendfile(const char *path); struct qa_packet *make_qp_rstat(const char *path, const struct stat *sb); -struct qa_packet *make_qp_data(const int remfd, const off_t offset, const int count, void *blob); +struct qa_packet *make_qp_data(const int remfd, const int count, void *blob); struct qa_packet *make_qp_data_allow(const int remfd, const int count); int qptostr(struct qa_packet *qp, char *qpstr, int maxsize); void qpfree(struct qa_packet *qp); |