mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
hurd: Fix vm_size_t incoherencies
In gnumach, 3e1702a65fb3 ("add rpc_versions for vm types") changed the type of vm_size_t, making it always a unsigned long. This made it incompatible on x86 with size_t. Even if we may want to revert it to unsigned int, it's better to fix the types of parameters according to the .defs files.
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
static ssize_t
|
||||
do_write (void *cookie, const char *buf, size_t n)
|
||||
{
|
||||
error_t error = __io_write ((io_t) cookie, buf, n, -1,
|
||||
(mach_msg_type_number_t *) &n);
|
||||
vm_size_t amount = n;
|
||||
error_t error = __io_write ((io_t) cookie, buf, n, -1, &amount);
|
||||
if (error)
|
||||
return __hurd_fail (error);
|
||||
return n;
|
||||
|
Reference in New Issue
Block a user