From 063f7462dac26487e38b126afcf80dad77da444c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 29 Aug 2022 01:42:47 +0200 Subject: 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. --- hurd/fopenport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hurd/fopenport.c') diff --git a/hurd/fopenport.c b/hurd/fopenport.c index 293c902ae3..5bc01fcd7e 100644 --- a/hurd/fopenport.c +++ b/hurd/fopenport.c @@ -48,7 +48,7 @@ readio (void *cookie, char *buf, size_t n) static ssize_t writeio (void *cookie, const char *buf, size_t n) { - mach_msg_type_number_t wrote; + vm_size_t wrote; error_t err; if (err = __io_write ((io_t) cookie, buf, n, -1, &wrote)) -- cgit 1.4.1