]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
fix-fakestat-support-for-hardlinks-20020731 made afs_vnop_link.c
authorNickolai Zeldovich <kolya@mit.edu>
Wed, 31 Jul 2002 19:43:31 +0000 (19:43 +0000)
committerNickolai Zeldovich <kolya@mit.edu>
Wed, 31 Jul 2002 19:43:31 +0000 (19:43 +0000)
not compile under Sun's cc, since it tried to take the address of
a register variable.  Don't declare the arguments as register.

src/afs/VNOPS/afs_vnop_link.c

index 2cd2c96917f50905cf6c4d871419e6fc49993565..09b4d4696ff92c1eae99fae1789ee996f1b51e87 100644 (file)
@@ -32,9 +32,9 @@ extern afs_rwlock_t afs_xcbhash;
 
 #ifdef AFS_OSF_ENV
 afs_link(avc, ndp)
-    register struct vcache *avc;
+    struct vcache *avc;
     struct nameidata *ndp; {
-    register struct vcache *adp = VTOAFS(ndp->ni_dvp);
+    struct vcache *adp = VTOAFS(ndp->ni_dvp);
     char *aname = ndp->ni_dent.d_name;
     struct ucred *acred = ndp->ni_cred;
 #else  /* AFS_OSF_ENV */
@@ -44,7 +44,7 @@ afs_link(OSI_VC_ARG(adp), avc, aname, acred)
 afs_link(avc, OSI_VC_ARG(adp), aname, acred)
 #endif
     OSI_VC_DECL(adp);
-    register struct vcache *avc;
+    struct vcache *avc;
     char *aname;
     struct AFS_UCRED *acred;
 {