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/trans-callback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libnetfs/trans-callback.c') diff --git a/libnetfs/trans-callback.c b/libnetfs/trans-callback.c index de436995..d9ec2dc2 100644 --- a/libnetfs/trans-callback.c +++ b/libnetfs/trans-callback.c @@ -27,7 +27,7 @@ static error_t _netfs_translator_callback1_fn (void *cookie1, void *cookie2, uid_t *uid, gid_t *gid, - char **argz, size_t *argz_len) + char **argz, mach_msg_type_number_t *argz_len) { error_t err; struct node *np = cookie1; -- cgit v1.2.3