From 6b494f5e7599ece2ca981472d690db3df3133bde Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Thu, 14 Dec 2023 01:06:37 -0500 Subject: 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: --- fatfs/inode.c | 2 +- fatfs/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'fatfs') diff --git a/fatfs/inode.c b/fatfs/inode.c index 1004cf05..c38ee0d9 100644 --- a/fatfs/inode.c +++ b/fatfs/inode.c @@ -545,7 +545,7 @@ diskfs_truncate (struct node *node, loff_t length) return err; } -error_t +kern_return_t diskfs_S_file_get_storage_info (struct protid *cred, mach_port_t **ports, mach_msg_type_name_t *ports_type, diff --git a/fatfs/main.c b/fatfs/main.c index 5ece199b..da6aa949 100644 --- a/fatfs/main.c +++ b/fatfs/main.c @@ -270,7 +270,7 @@ diskfs_readonly_changed (int readonly) /* FIXME: libdiskfs doesn't lock the parent dir when looking up a node for fsys_getfile, so we disable NFS. */ -error_t +kern_return_t diskfs_S_fsys_getfile (struct diskfs_control *pt, mach_port_t reply, mach_msg_type_name_t reply_type, const uid_t *uids, mach_msg_type_number_t nuids, -- cgit v1.2.3