diff options
author | Nate Straz <nstraz@redhat.com> | 2006-11-16 04:17:02 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:46 -0400 |
commit | 9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9 (patch) | |
tree | 1234bdb063d6ae9feed841546cda5ed710409ec6 /qarsh_packet.h | |
parent | 5d90b7ceb5e0bd2fd41ded8ec706b04cacfc647c (diff) | |
download | qarsh-9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9.tar.gz qarsh-9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9.tar.xz qarsh-9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9.zip |
Use off_t instead of size_t so we can transfer files larger than 2GB.
I changed all formats from %zd to %lld, but this adds a lot of warnings
because off_t isn't the same as long long int to the compiler. I don't
know if there is a way to avoid the warnings on all platforms.
Diffstat (limited to 'qarsh_packet.h')
-rw-r--r-- | qarsh_packet.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qarsh_packet.h b/qarsh_packet.h index e854bd5..2ed50f4 100644 --- a/qarsh_packet.h +++ b/qarsh_packet.h @@ -80,7 +80,7 @@ struct qp_recvfile_pkt { char *qp_path; mode_t qp_mode; int qp_if_port; - size_t qp_count; + off_t qp_count; }; struct qp_sendfile_pkt { @@ -137,7 +137,7 @@ struct qa_packet *make_qp_runcmd(char *cmdline, int p_in, int p_out, int p_err); struct qa_packet *make_qp_cmdexit(pid_t pid, int status); struct qa_packet *make_qp_setuser(char *user, char *group); struct qa_packet *make_qp_kill(int sig); -struct qa_packet *make_qp_recvfile(const char *path, int if_port, size_t count, mode_t mode); +struct qa_packet *make_qp_recvfile(const char *path, int if_port, off_t count, mode_t mode); struct qa_packet *make_qp_sendfile(const char *path, int of_port); struct qa_packet *make_qp_rstat(const char *path, const struct stat *sb); char *qptostr(struct qa_packet *qp, char **qpstr, int *qpsize); |