From 654b75427b57dc57958e6588a48fc4335de5c393 Mon Sep 17 00:00:00 2001 From: Mattias Amnefelt Date: Wed, 10 Jul 2002 21:01:29 +0000 Subject: [PATCH] STABLE12-dux-sysent-update-20020614 cast this to deal with changes in sysent in later tru64 (cherry picked from commit da8653c30b7b850269ac20c3c94c37c7d36a59c9) --- src/afs/DUX/osi_vfsops.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/afs/DUX/osi_vfsops.c b/src/afs/DUX/osi_vfsops.c index 2a9d63061..c5e4a04a7 100644 --- a/src/afs/DUX/osi_vfsops.c +++ b/src/afs/DUX/osi_vfsops.c @@ -484,14 +484,16 @@ int mp_Afs_init(void) extern int Afs_xsetgroups(), afs_xioctl(), afs3_syscall(); AFS_GLOCK(); - sysent[AFS_SYSCALL].sy_call = afs3_syscall; + ((struct sysent *) (&sysent[AFS_SYSCALL]))->sy_call = afs3_syscall; #ifdef SY_NARG - sysent[AFS_SYSCALL].sy_info = 6; + ((struct sysent *) (&sysent[AFS_SYSCALL]))->sy_info = 6; #else - sysent[AFS_SYSCALL].sy_parallel = 0; - sysent[AFS_SYSCALL].sy_narg = 6; + ((struct sysent *) (&sysent[AFS_SYSCALL]))->sy_parallel = 0; + ((struct sysent *) (&sysent[AFS_SYSCALL]))->sy_narg = 6; #endif - sysent[SYS_setgroups].sy_call = Afs_xsetgroups; + + ((struct sysent *) (&sysent[SYS_setgroups]))->sy_call = + Afs_xsetgroups; afs_xioctl_func = afsxioctl; afs_xsetgroups_func = afsxsetgroups; afs_syscall_func = afssyscall; -- 2.39.5