]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
dux-sysent-update-20020614
authorMattias Amnefelt <mattiasa@e.kth.se>
Fri, 14 Jun 2002 18:45:33 +0000 (18:45 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 14 Jun 2002 18:45:33 +0000 (18:45 +0000)
cast this to deal with changes in sysent in later tru64

src/afs/DUX/osi_vfsops.c

index 2a9d6306101267452f7d598f9760d27f8b8262bb..c5e4a04a77dbae084dffc07e9260a5a87cac7ead 100644 (file)
@@ -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;