aboutsummaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorEtienne Brateau <etienne.brateau@gmail.com>2022-08-29 21:36:17 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-08-29 21:51:19 +0200
commit5adb4b834b1eba82b7f3eca6324bed0355cae0af (patch)
tree3666abd2c80c0821cb365a4238e6ae6ee0964d86 /libtrivfs
parentac09ca6c033185382fbfb60e5e47fd1e8a85f6aa (diff)
downloadhurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.tar.gz
hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.tar.bz2
hurd-5adb4b834b1eba82b7f3eca6324bed0355cae0af.zip
Fix types of read write and readables methods
Message-Id: <20220829193617.13481-1-etienne.brateau@gmail.com>
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-read.c2
-rw-r--r--libtrivfs/io-readable.c2
-rw-r--r--libtrivfs/io-write.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libtrivfs/io-read.c b/libtrivfs/io-read.c
index a911f778..4d3302e4 100644
--- a/libtrivfs/io-read.c
+++ b/libtrivfs/io-read.c
@@ -26,7 +26,7 @@ trivfs_S_io_read (struct trivfs_protid *cred,
data_t *data,
mach_msg_type_number_t *datalen,
off_t off,
- mach_msg_type_number_t amt)
+ vm_size_t amt)
{
assert_backtrace (!trivfs_support_read);
return EOPNOTSUPP;
diff --git a/libtrivfs/io-readable.c b/libtrivfs/io-readable.c
index de4d32b8..acb3fa52 100644
--- a/libtrivfs/io-readable.c
+++ b/libtrivfs/io-readable.c
@@ -23,7 +23,7 @@ kern_return_t
trivfs_S_io_readable (struct trivfs_protid *cred,
mach_port_t reply,
mach_msg_type_name_t replytype,
- mach_msg_type_number_t *amount)
+ vm_size_t *amount)
{
assert_backtrace (!trivfs_support_read);
return EOPNOTSUPP;
diff --git a/libtrivfs/io-write.c b/libtrivfs/io-write.c
index 74cbb32b..787b2544 100644
--- a/libtrivfs/io-write.c
+++ b/libtrivfs/io-write.c
@@ -27,7 +27,7 @@ trivfs_S_io_write (struct trivfs_protid *cred,
const_data_t data,
mach_msg_type_number_t datalen,
off_t off,
- mach_msg_type_number_t *amt)
+ vm_size_t *amt)
{
if (!(trivfs_allow_open & O_WRITE))
return EBADF;