]> 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:55:32 +0000 (19:55 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Wed, 31 Jul 2002 19:55:32 +0000 (19:55 +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.

(cherry picked from commit 6c9fd25ae779bc092b9c1eb531d08483b4a96a53)

src/afs/VNOPS/afs_vnop_link.c

index d244cca7a234b334930b1a9a50c163f154583ef2..921941f82cc657c45f07697f97319a0e505abe88 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;
 {