diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-02-12 14:10:33 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-12 15:52:07 +0100 |
commit | f4315054b46d5e58b44a709a51943fb73f846afb (patch) | |
tree | 08dd446b613f6549260c17b3060453fa040eb4d8 /sysdeps/mach/hurd/sendfile64.c | |
parent | 8a86e7b6a67f21294ada5bf67f3484ae3e134848 (diff) | |
download | glibc-f4315054b46d5e58b44a709a51943fb73f846afb.tar.gz glibc-f4315054b46d5e58b44a709a51943fb73f846afb.tar.xz glibc-f4315054b46d5e58b44a709a51943fb73f846afb.zip |
hurd: Use mach_msg_type_number_t where appropriate
It has been decided that on x86_64, mach_msg_type_number_t stays 32-bit. Therefore, it's not possible to use mach_msg_type_number_t interchangeably with size_t, in particular this breaks when a pointer to a variable is passed to a MIG routine. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com> Message-Id: <20230212111044.610942-3-bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/mach/hurd/sendfile64.c')
-rw-r--r-- | sysdeps/mach/hurd/sendfile64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/sendfile64.c b/sysdeps/mach/hurd/sendfile64.c index 658b02826d..e36b979078 100644 --- a/sysdeps/mach/hurd/sendfile64.c +++ b/sysdeps/mach/hurd/sendfile64.c @@ -35,7 +35,7 @@ __sendfile64 (int out_fd, int in_fd, off64_t *offset, size_t count) which might blow if it's huge or address space is real tight. */ char *data = 0; - size_t datalen = 0; + mach_msg_type_number_t datalen = 0; error_t err = HURD_DPORT_USE (in_fd, __io_read (port, &data, &datalen, offset ? *offset : (off_t) -1, |