mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
macos 32 bit platform user address transform
make the ioctl32 translator work as expected, e.g., create proper user addresses. Change-Id: Ia690dee5f9978d679e942a9954f2123df4a96bc2 Reviewed-on: http://gerrit.openafs.org/1687 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
f9799b8561
commit
ec74299c7c
@ -36,8 +36,13 @@
|
||||
static void
|
||||
afs_ioctl32_to_afs_ioctl(const struct afs_ioctl32 *src, struct afs_ioctl *dst)
|
||||
{
|
||||
#ifdef AFS_DARWIN100_ENV
|
||||
dst->in = CAST_USER_ADDR_T(src->in);
|
||||
dst->out = CAST_USER_ADDR_T(src->out);
|
||||
#else
|
||||
dst->in = (char *)(unsigned long)src->in;
|
||||
dst->out = (char *)(unsigned long)src->out;
|
||||
#endif
|
||||
dst->in_size = src->in_size;
|
||||
dst->out_size = src->out_size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user