From 3bc9a699ca7106204ffa97272374313bf04f6cc0 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 8 Aug 2023 01:25:50 +0200 Subject: Homogeneize [gs]et_translator and get_dire[nc]ts into mach_msg_type_number_t This makes netfs_[gs]et_translator use mach_msg_type_number_t like the RPC and diskfs. This also makes the fshelp_fetch_root_callback1_t for fshelp_fetch_root use mach_msg_type_number_t. This also makes procfs_get_translator and the get_translator proc method use mach_msg_type_number_t. This makes diskfs_get_directs use mach_msg_type_number_t like the dir_readdir RPC Also get rid of u_int. This notably fixes _diskfs_translator_callback1_fn's bogus cast of size_t *argz_len into (u_int *). --- libnetfs/netfs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libnetfs/netfs.h') diff --git a/libnetfs/netfs.h b/libnetfs/netfs.h index 3bab63cd..6fc53ce4 100644 --- a/libnetfs/netfs.h +++ b/libnetfs/netfs.h @@ -154,7 +154,7 @@ error_t netfs_attempt_mkdev (struct iouser *cred, struct node *np, translator record for FILE to ARGZ (of length ARGZLEN) for user CRED. NP is locked. */ error_t netfs_set_translator (struct iouser *cred, struct node *np, - const char *argz, size_t argzlen); + const char *argz, mach_msg_type_number_t argzlen); /* The user may define this function (but should define it together with netfs_set_translator). For locked node NODE with S_IPTRANS @@ -162,7 +162,7 @@ error_t netfs_set_translator (struct iouser *cred, struct node *np, name into newly malloced storage, and return it in *ARGZ; set *ARGZ_LEN to the total length. */ error_t netfs_get_translator (struct node *node, char **argz, - size_t *argz_len); + mach_msg_type_number_t *argz_len); /* The user must define this function. This should attempt a chflags call for the user specified by CRED on locked node NP, to change -- cgit v1.2.3