From 9fc82fc82e7248a598b8c8bedd86cecb3c10d1e9 Mon Sep 17 00:00:00 2001 From: Nate Straz Date: Thu, 16 Nov 2006 04:17:02 +0000 Subject: 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. --- qarsh_packet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qarsh_packet.h') 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); -- cgit