aboutsummaryrefslogtreecommitdiff
path: root/trans/hello-mt.c
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-12-14 01:06:37 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-12-17 23:57:00 +0100
commit6b494f5e7599ece2ca981472d690db3df3133bde (patch)
tree82ea19a196c6e4c8c53ddce4d1528e92b9751cb1 /trans/hello-mt.c
parentb1d240be9b36a1db738e1357081987873be94636 (diff)
downloadhurd-6b494f5e7599ece2ca981472d690db3df3133bde.tar.gz
hurd-6b494f5e7599ece2ca981472d690db3df3133bde.tar.bz2
hurd-6b494f5e7599ece2ca981472d690db3df3133bde.zip
Update server handlers to return kern_return_error to fix -Werror=enum-int-mismatch warnings
MiG expects those to return kern_return_t. Message-ID: <ZXqbbXpVqQAwd2qv@jupiter.tail36e24.ts.net>
Diffstat (limited to 'trans/hello-mt.c')
-rw-r--r--trans/hello-mt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trans/hello-mt.c b/trans/hello-mt.c
index e99ba754..f39dd9ab 100644
--- a/trans/hello-mt.c
+++ b/trans/hello-mt.c
@@ -121,7 +121,7 @@ close_hook (struct trivfs_peropen *peropen)
/* Read data from an IO object. If offset is -1, read from the object
maintained file pointer. If the object is not seekable, offset is
ignored. The amount desired to be read is in AMOUNT. */
-error_t
+kern_return_t
trivfs_S_io_read (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
data_t *data, mach_msg_type_number_t *data_len,
@@ -180,7 +180,7 @@ trivfs_S_io_read (struct trivfs_protid *cred,
/* Change current read/write offset */
-error_t
+kern_return_t
trivfs_S_io_seek (struct trivfs_protid *cred,
mach_port_t reply, mach_msg_type_name_t reply_type,
off_t offs, int whence, off_t *new_offs)