From 6c9fd25ae779bc092b9c1eb531d08483b4a96a53 Mon Sep 17 00:00:00 2001 From: Nickolai Zeldovich Date: Wed, 31 Jul 2002 19:43:31 +0000 Subject: [PATCH] fix-fakestat-support-for-hardlinks-20020731 made afs_vnop_link.c 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/afs/VNOPS/afs_vnop_link.c b/src/afs/VNOPS/afs_vnop_link.c index 2cd2c96917..09b4d4696f 100644 --- a/src/afs/VNOPS/afs_vnop_link.c +++ b/src/afs/VNOPS/afs_vnop_link.c @@ -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; {