aboutsummaryrefslogtreecommitdiff
path: root/fatfs/inode.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-08 01:25:50 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-08-08 02:28:06 +0200
commit3bc9a699ca7106204ffa97272374313bf04f6cc0 (patch)
treed4b83df84a6bb65a343f746b1f542df3ac64ae4b /fatfs/inode.c
parente22f3a3170e5c3028dc83fbdfb0d8705fd00df75 (diff)
downloadhurd-3bc9a699ca7106204ffa97272374313bf04f6cc0.tar.gz
hurd-3bc9a699ca7106204ffa97272374313bf04f6cc0.tar.bz2
hurd-3bc9a699ca7106204ffa97272374313bf04f6cc0.zip
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 *).
Diffstat (limited to 'fatfs/inode.c')
-rw-r--r--fatfs/inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatfs/inode.c b/fatfs/inode.c
index cb1ca423..1004cf05 100644
--- a/fatfs/inode.c
+++ b/fatfs/inode.c
@@ -471,7 +471,7 @@ diskfs_set_statfs (struct statfs *st)
error_t
diskfs_set_translator (struct node *node,
- const char *name, u_int namelen,
+ const char *name, mach_msg_type_number_t namelen,
struct protid *cred)
{
assert_backtrace (!diskfs_readonly);
@@ -479,7 +479,7 @@ diskfs_set_translator (struct node *node,
}
error_t
-diskfs_get_translator (struct node *node, char **namep, u_int *namelen)
+diskfs_get_translator (struct node *node, char **namep, mach_msg_type_number_t *namelen)
{
assert_backtrace (0);
}