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;